Is it possible to make a Cocoa app scriptable using Ruby instead of AppleScript? Any reasons why I shouldn't?
Even if one has to use AppleScript, there are still the following alternatives:
- The AppleScript dictionary only contains one "function": "sendRubyScriptToApp". What this "function" (not sure what they're called in AppleScript) does is to simply pass a string containing the entire Ruby script that the app accepts.
- Use AppleScript in the regular way.
What would be some advantages and drawbacks?