[MacRuby-devel] MacRuby and Scripting Bridge

Steve Clarke steve at sclarkes.me.uk
Fri Sep 30 06:41:37 PDT 2011


Have you tried the macruby version of rb-appscript? I found it ran most of scripts without any change. I was also initially attracted to scripting bridge but had problems with it and subsequently read a few negative reports. 

On 30 Sep 2011, at 13:08, Naughty Nimitz <naughty.nimitz at gmail.com> wrote:

> Hi all,
> 
> As i am migrating from RubyCocoa (and the rb-appscript gem) to MacRuby I am charmed by Scripting Bridge: no gems required and supposedly easy to use.
> 
> Now my problem is how to migrate some statements: take this one in RubyCocoa and appscript:
> 
> app("Adobe Indesign CS5").script_preferences.user_interaction_level.set(:never_interact)
> 
> 
> to Scripting Bridge?
> appurl = NSURL.fileURLWithPath("/Applications/Adobe Indesign CS5/Adobe InDesign CS5.app")
> app = SBApplication.applicationWithURL(appurl)
> app.dosamething
> 
> It wont accept app.scripting_preferences or app.scriptpreferences?
> 
> Alas, app.methods does not reveal a lot of information apart from the default ruby methods.
> Any clues (blogs, ...) where i can find info are more than welcome!
> 
> Thanks in advance
> 
> 
> --
> Nimitz
> 
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110930/829600bb/attachment.html>


More information about the MacRuby-devel mailing list