Class: AppleScriptString
- Inherits:
-
String
- Object
- String
- AppleScriptString
- Defined in:
- lib/applescript.rb
Instance Method Summary collapse
Instance Method Details
#answer ⇒ Object
91 92 93 |
# File 'lib/applescript.rb', line 91 def answer gsub(/(.*?)(text returned:)(.*?)($|,.*)/, "\\3").chomp end |
#button ⇒ Object
87 88 89 |
# File 'lib/applescript.rb', line 87 def gsub(/(.*?)(button returned:)(.*?)($|,.*)/, "\\3").chomp end |
#choice ⇒ Object
95 96 97 |
# File 'lib/applescript.rb', line 95 def choice gsub(/(.*?)(\{"*?)(.*?)("*?\}.*)/, "\\3").chomp end |
#unix_path ⇒ Object
83 84 85 |
# File 'lib/applescript.rb', line 83 def unix_path gsub(/^(file|alias).*?:/,"/").gsub(/:/,"/").chomp end |