Re: iTunes Playlist Script
Re: iTunes Playlist Script
- Subject: Re: iTunes Playlist Script
- From: Jon Wynacht <email@hidden>
- Date: Fri, 18 Feb 2005 13:45:07 -0800
There it is....thanks Matthew!
Jon
On Feb 17, 2005, at 3:00 PM, Matthew Smith wrote:
on 18/02/2005 02:16, Jon Wynacht at email@hidden wrote:
Thanks for the feedback on the script. As for the time error, I just
wrote it wrong ;-)
I like your script but I like your idea of accessing the smart
playlist
more. How would I access the playlist name? I tried using the actual
name but that didn't work.
A playlist exists within a source, which could be a library, a library
on
shared from another computer, an iPod and several others.
So if your playlist is called "Imports: Last Month" you would need to
refer
to the play list as
tell app "iTunes"
playlist "Imports: Last Month" of source "Library"
end tell
This should be much faster than having AppleScript find all the tracks
in
the library which were added in the last month.
You script would be like this:
tell application "iTunes"
set trackList to every track of playlist "Imports: Last Month" of
source
"Library"
repeat with oneTrack in trackList
-- do processing here
end repeat
end tell
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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:
This email sent to email@hidden