iTunes - Applescript Help
I'm looking for some assistance in finding Applescript code that will allow the "cycling of playlists that I created", excluding any defaults such as Library, Music, Movies, TV Shows...
Be warned I have never written an Applescript before, so your replies should be at beginner level, don't assume anything.
In my mind I would want something like these:
tell application "iTunes"
if current playlist is "Jazz" then
set current playlist to "Rock"
end if
if current playlist is "Rock" then
set current playlist to "Country"
end if
if current playlist is "Country" then
set current playlist to "Jazz"
end if
end tell
------------------------------------------------------------
tell application "iTunes"
if current playlist is "Jazz" then
play playlist "Rock"
end if
if current playlist is "Rock" then
play playlist "Country"
end if
if current playlist is "Country" then
play playlist "Jazz"
end if
end tell
The error for the above is "can't get current playlist"
tell application "iTunes"
if playlist is "Jazz" then
play playlist "Rock"
end if
if playlist is "Rock" then
play playlist "Country"
end if
if playlist is "Country" then
play playlist "Jazz"
end if
end tell
This version has no error, but also doesn't do anything
iTunes is smart enough to play an exact playlist:
tell application "iTunes"
playplaylist "Jazz"
end tell
So how do I get it to use if/then logic to select the appropriate playlist?
Many thanks in advance.
OS 10.8.4
iTunes 11.0.5
OS X Mountain Lion (10.8.4)