• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 21 Apr 2008 09:22:16 -0700
  • Thread-topic: Syntax Question

Title: Re: Syntax Question
I think Gil might possibly not be looking for 'some' at all but rather 'first', to use with a whose clause:

        tell playlist "ClodiFon"
               name of first track whose database ID is dbid
       end tell


... if  you can get a track of a playlist via a whose filter (untested) - it doesn't say so in the Dictionary: usually Script Debugger will tell you when whose filters are implemented for elements. Sorry I don't have time to check right now.

--
Paul Berkowitz



From: Philip Aker <email@hidden>
Date: Sun, 20 Apr 2008 23:10:41 -0700
To: Gil Dawson <email@hidden>
Cc: <email@hidden>
Subject: Re: Syntax Question

On 08-04-20, at 18:37, 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).

tell application "iTunes"
tell playlist "RubyTuesday"
name of some track
end tell
end tell

Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Sent from my SE/30


 



_______________________________________________
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
 _______________________________________________
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: 
 >Re: Syntax Question (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Syntax Question
  • Next by Date: How to tell if text is of another language
  • Previous by thread: Re: Syntax Question
  • Next by thread: Re: Syntax Question
  • Index(es):
    • Date
    • Thread