Hi,
I have found one of Doug's iTunes scripts and I want to adjust it. The original script had this line to get all the playlists. I don't want to return every playlist, I just want to add the ones I want.
set the_playlists to the name of every playlist
I changed it to this line, but no joy. Where am I going wrong?
set the_playlists to the name of playlist {"_Recently Added", "Chill"}
The original script allows you to pick a random playlist or from a list of every playlist, a random song, or from the beginning of the playlist.
Any help would be most welcome. I have added the whole section at the bottom of this email.
tell application "iTunes" set the_playlists to the name of every playlist set count_pl to count the_playlists if pick_random_pl then set the_choice to item (random number from 1 to count_pl) of the_playlists else tell me set the_choice to choose from list the_playlists with prompt "Pick a Playlist:" end tell end if set the_pl to item 1 of (every playlist whose name is the_choice) set the_total to count tracks in the_pl if pick_random_song then set n to random number from 1 to the_total else set n to 1 end if play track n of the_pl end tell
*****************************************************
This E-Mail has been scanned by Sophos Anti-Virus
*****************************************************
|