class Dutchman::GhostWriter::AppleScript

The current rb_appscript gem said to beware and not to use in new applications. Instead of digging into that application I thought that it be better to simply create a wrapper class that executes the osascript command on the command line.

Public Instance Methods

app(name) click to toggle source
# File lib/dutchman/ghost_writer/apple_script/apple_script.rb, line 15
def app(name)
  Application.new(self,name)
end
command(applescript) click to toggle source
# File lib/dutchman/ghost_writer/apple_script/apple_script.rb, line 23
def command(applescript)
  Command.new(self,applescript)
end
execute(applescript) click to toggle source
# File lib/dutchman/ghost_writer/apple_script/apple_script.rb, line 19
def execute(applescript)
  `#{command(applescript)}`
end