• 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: Syntax Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax Question


  • Subject: Re: Syntax Question
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 21 Apr 2008 09:33:01 -0700

On Apr 20, 2008, at 6:37 PM, Gil Dawson wrote:

What is the syntax for "some", as in...

tell application "iTunes"
        tell playlist "ClodiFon"
                name of some track whose (database ID) is dbid
        end tell
end tell
I couldn't find it in my copy of The AppleScript Language Guide (1996 edition).

The index is your friend.  "some, reserved word: p. 170".  I can't refer you to the 1996 HTML any more, but in the current edition it's <http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_reference_forms.html#//apple_ref/doc/uid/TP40000983-CH4g-BCIJEEHE>.

The use of "some" there is a bit gratuitous, since there will be at most one match.  "First" would have worked just as well.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Syntax Question (From: Gil Dawson <email@hidden>)

  • Prev by Date: Script to launch or toggle the visibility of an application?
  • Next by Date: Re: Syntax Question
  • Previous by thread: Re: Syntax Question
  • Next by thread: Re: Syntax Question
  • Index(es):
    • Date
    • Thread