Re: [fakeapp] Scripting Fakeapp with Ruby?

82 views
Skip to first unread message

Todd Ditchendorf

unread,
Apr 24, 2013, 9:32:35 PM4/24/13
to Fake
I don't know Ruby or the AppleScript/Ruby bindings, but these types of scripting bridges usually require underscores in the place of colons in ObjC method names.

So you might try:

fake.loadURL_("www.fakeapp.com")

TD



On Wed, Apr 24, 2013 at 1:42 PM, ignite <ignit...@gmail.com> wrote:
I don't know Applescript but I've learned a bit of Ruby, though I'm still a newbie with it. I've seen rb-appscript and MacRuby with Scripting Bridge.

I couldn't get rb-appscript to work, probably because of lack of knowledge. But I partially got the MacRuby and Scripting Bridge working. I was able to reload fake via the script but not load a url.
#!/usr/local/bin/macruby
framework "ScriptingBridge"
fake = SBApplication.applicationWithBundleIdentifier("com.fakeapp.Fake")
fake.reload() # works
fake.goBack() # works
fake.loadURL("http://www.apple.com") # doesn't work
Any idea why some work and some don't? I've tried every variation of "load URL" i could think of. Thanks.

--
You received this message because you are subscribed to the Google Groups "Fake" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fakeapp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages