一意のプレイリストを再生
property thePlaylist : "IndiePopRocks" tell application "iTunes" launch stop set the_playlist to user playlist thePlaylist set view of front window to the_playlist play the_playlist end tell
そのシェルスクリプト版
#!/bin/sh PLAY_LIST='IndiePopRocks'; osascript -e 'on run argv set thePlaylist to item 1 of argv tell application "iTunes" launch stop set the_playlist to user playlist thePlaylist set view of front window to the_playlist play the_playlist end tell end run' $PLAY_LIST
で、ホントにやりたいことは
tell app "iTunes"to open location "http://somafm.com/indiepop.pls"
で、出来た...