[MacRuby-devel] Multiple enumerations
Josh Voigts
joshvoigts at gmail.com
Tue May 1 13:57:08 PDT 2012
Is there a way to get multiple enumerations to work, like in the
following example. I know I could be doing this with cocoa, but it's a
small scripting project. (Also I didn't feel like loading a bridge
support file, would that help in this case?)
framework 'ScriptingBridge'
sys = SBApplication.applicationWithBundleIdentifier("com.apple.systemevents")
COMMAND_KEY = 1264807268
OPTION_KEY = 1265594484
sys.keystroke("u", using: COMMAND_KEY|OPTION_KEY)
It seems to only recognize the first enum... I'm probably missing
something logically here...
More information about the MacRuby-devel
mailing list