• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making Cocoa Application Scriptable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making Cocoa Application Scriptable


  • Subject: Re: Making Cocoa Application Scriptable
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 20 Aug 2006 09:10:45 -0700
  • Thread-topic: Making Cocoa Application Scriptable

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

  • Follow-Ups:
    • Re: Making Cocoa Application Scriptable
      • From: Andrei Tchijov <email@hidden>
  • Prev by Date: Remounting afp Filesystem
  • Next by Date: Re: Stacked NSDocument Windows
  • Previous by thread: Re: Making Cocoa Application Scriptable
  • Next by thread: Re: Making Cocoa Application Scriptable
  • Index(es):
    • Date
    • Thread