• 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
AppleScript bug/change/feature in iTunes 7.7.1?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript bug/change/feature in iTunes 7.7.1?


  • Subject: AppleScript bug/change/feature in iTunes 7.7.1?
  • From: Doug Adams <email@hidden>
  • Date: Thu, 31 Jul 2008 15:03:49 -0400

Hello,

I think I have found a rather unusual AppleScript bug (or perhaps feature; one never knows) in iTunes 7.7.1. It effects several scripts that may need to reference a track using a persistent ID. When attempting to reference a single track with a whose clause, the track reference is returned coerced as a list. This requires that an additional step be taken to extricate the single item (the track reference) from the list. I have filed a bug report. It is reproducible with this script:

tell application "iTunes
set t to item 1 of selection
set p to (get persistent ID of t)
log ("p: " & p)
set the_track to (some track of library playlist 1 whose persistent ID is p)
-- the result is a list
(* {file track id 33083 of library playlist id 10591 of source id 46} *)
log the_track
end tell


Previous behavior would have returned a single reference without the list brackets.

--
Doug's AppleScripts for iTunes - http://dougscripts.com
_______________________________________________
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
  • Prev by Date: Re: shell script to change permissions
  • Next by Date: Re: Who is zimbra?
  • Previous by thread: Re: Reading XMP metadata from a JPEG
  • Index(es):
    • Date
    • Thread