I want to do this with itunes:
play playlist “library”
but, I want to make both term variable
this does not work…any ideas?
tell app "itunes"
set source1 to "playlist" as string
set name 1 to "library" as string
play source1 name1
end tell
I want to do this with itunes:
play playlist “library”
but, I want to make both term variable
this does not work…any ideas?
tell app "itunes"
set source1 to "playlist" as string
set name 1 to "library" as string
play source1 name1
end tell
doc:
You need to set the whole structure to a variable, like so:
tell application "iTunes"
set play01 to playlist "library"
play play01
end tell
This works for any playlist you want:
tell application "iTunes"
set play01 to first library playlist
set play02 to playlist "Television"
set play03 to playlist "library"
play play01
end tell
Go crazy.
thanks!