AppleScript for iTunes Playlists

Submitted by:David Villa

Date added:13 December, 2011

Category:AppleScript

Chooses a pre-determined playlist from your iTunes library

Tags: itunes playlists

Code Snippet:

tell application "iTunes"
activate
set visible of front window to true
set view of front window to playlist "Hall & Oates"
copy (get view of front window) to thePlaylist
set soundValue to (choose from list {"25", "50", "75", "100"} with prompt "Select volume level:" OK button name "Play" cancel button name "Abort")
set soundValue to soundValue as integer
set sound volume to soundValue
play thePlaylist
end tell
 
 

Comments