[MacRuby-devel] BridgeSupport (objC header file) simple parser
mattaimonetti at gmail.com
Fri Nov 11 11:24:12 PST 2011
My guess is that JS automatically converts the object in its string
representation while in Ruby, you get the real object and you have to call
a method on it. I agree that this isn't great and I'm not a
BridgeSupport/ScriptingBridge expert so I can't tell you if that's
something wrong on SB side or Adobe's.
On Fri, Nov 11, 2011 at 4:13 PM, Spencer Rose <dspencerr at gmail.com> wrote:
> Thanks for doing this Matt. I have not fallen off the earth on this one.
> Trying to do a lot of research and figure this thing out. InDesign's
> API is complicated enough, but the way ScriptingBridge works with it is
> making me work hard. Annoying that running these two commands in the
> following languages gives me the following discrepant results;
> app.selection.contents -> results in the text of whatever is selected
> (eg.. line or word or paragraph)
> Ruby run at Terminal
> puts app.selection.contents -> <SBObject:0x209373520>
> Once again, that SBObject is not incredibly helpful.
> I appreciate the parser and will definitely start posting a lot of what I
> as I have some success dissecting the Scripting calls.
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the MacRuby-devel