Re: Making Cocoa Application Scriptable
Re: Making Cocoa Application Scriptable
- Subject: Re: Making Cocoa Application Scriptable
- From: Andrei Tchijov <email@hidden>
- Date: Sun, 20 Aug 2006 12:50:02 -0400
Matt,
Once again thank you very much for very illuminating comments. I
have implemented valueInFoosWithName: ( as per advice from one of
earlier replies ) and now I can do "foo named "xxx"" which is all I
really want to do.
Now "every foo whoose xxx is yyy " will it work only with "name" or
with any scriptable property?
Best Regards,
Andrei
On Aug 20, 2006, at 12:10 PM, Matt Neuburg wrote:
On Sat, 19 Aug 2006 18:34:03 -0400, Andrei Tchijov
<email@hidden>
said:
Glenn,
Thanks for the tip. With "-valueInFoosWithName:" I observe the very
same behavior as you described. Does it mean, that there is another
"magical" method name pattern with will "whose name is" work?
Sorry, I wasn't grasping what you were trying to do; perhaps I
should have
been more explicit. The following are legal AppleScript expressions:
track 5
track "Hangman's Blues"
track named "Hangman's Blues"
every track whose name is "Hangman's Blues"
This, however, is not AppleScript:
track whose name is "Hangman's Blues"
So if that's what you're trying to say, you're probably doomed to
disappointment (I would expect the AppleScript runtime to throw an
error so
that no message gets to your app at all). My book tells you what
constitutes
legal AppleScript. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden