Re: Problem with iTunes & AppleScript (1.8.3)
Re: Problem with iTunes & AppleScript (1.8.3)
- Subject: Re: Problem with iTunes & AppleScript (1.8.3)
- From: Chris Espinosa <email@hidden>
- Date: Thu, 27 Jun 2002 10:36:16 -0700
On Thursday, June 27, 2002, at 07:06 AM, Martin Michel wrote:
>
tell application "iTunes"
>
set the_library to name of playlist 1
>
set the_tracks to every file track of playlist the_library
>
repeat with the_track in the_tracks
>
set the_artist to artist of the_track
>
display dialog the_artist
>
end repeat
>
end tell
This works for us here in our testing. Could you perhaps open the
Event Log, check both check boxes, and run the script again to see what
is failing? Apparently iTunes is not returning a valid name of
playlist 1.
A workaround is, of course, to skip that step entirely. You don't need
to use intermediate variables at all:
tell application "iTunes"
repeat with the_track in every file track of playlist 1
display dialog (get artist of the_track)
end repeat
end tell
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.