[MacRuby-devel] MacRuby, ApplesScript and Skype?

Mike Gleeson mgleeson at current.com
Wed May 30 08:23:19 PDT 2012


I'm looking to do some scripted control of Skype, and not able to get too far with MacRuby.  Please let me know if this is not the proper forum to ask, thanks.

I can find the app:

>> skype = SBApplication.applicationWithBundleIdentifier("com.skype.skype")

And I see in the Applescript editor that there is a single command called "send" that matches the Skype documentation.  I can't seem to invoke it, asking for suggestions.

The list of available functions shows a few relevant details:

>> skype.methods(true,true) - Object.methods(true,true)

(This is trimmed):
:classesForScriptingNames, :classNamesForCodes, :"sendCommand:scriptName:",  :classForScriptingClass,
 :setDelegate, :delegate, and then a handful of init methods.

It looks like ':"sendCommand:scriptName:"' is that doorway into AppleScript, but I'm not sure what to do with it.  I don't see "send" anywhere, and I don't know if that's an issue as it is also a standard Ruby method.

Ideas anyone?

Thanks,

- Mike G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120530/d764e240/attachment.html>


More information about the MacRuby-devel mailing list