playing a playlist as a variable

I need to know how to play a playlist on iTunes whose name is a set variable, i.e. Party Shuffle

thanks

You are very near to your answer:

set x to "Canned Heat"
tell application "iTunes" to play playlist x

:wink:

sorry :sad: that doesnt work! I have a prompt asking what the playlist is and it wasn’t working so if anybody else knows what it is can you post here?

jj’s code works for me in iTunes 4.7.1. The application starts playing the specified playlist but the interface doesn’t actually select that playlist in the list column on the left of the main iTunes screen. Here’s a way to make sure you don’t have a data entry error:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]