I'm new to Applescript (literally just started today), but I can't find out how easy it is to play an album without creating a playlist with just one album and playing this playlist. Essentially, I figured out how to look for what I want and play something, but I can only play one song at a time.
tell application "iTunes"
set search_results to (search playlist "Library" for "Monument Valley (Original Soundtrack)")
repeat with i in search_results
play i
end repeat
end tell
If I do, he goes through each song until he hits the last and the last is played. I believe that you can use next trackto add something to the "Up Next", but I did not get the job. Is there a way to actually do this, or do I need to give in to the playlist?
source
share