Does anyone know if it is possible to have a Ruby application that
receives Apple Events? I assume it would be in an event loop. Really,
what I’m asking is if I can create a pure Ruby app that behaves like a
“first class” application as Apple has promised.
Does anyone know if it is possible to have a Ruby application that
receives Apple Events? I assume it would be in an event loop. Really,
what I’m asking is if I can create a pure Ruby app that behaves like a
“first class” application as Apple has promised.
It may not be a bad idea to do a few standard Cocoa with Objective-C
tutorials and familiarize yourself with the framework a bit.
Installing event handlers via NSAppleEventManager is fine for simple
tasks. For full-blown scripting interfaces that expose a query-able
object model a-la Finder, Mail, etc., Cocoa Scripting would be more
appropriate (if a bear to get right). Matt N. - who often lurks
around this list - would be the best person to speak to.