tell application "iTunes"
current stream title -- the name of the current song in the playing stream
name of current track -- the URL of the playing stream or streaming web site
end tell
shell script
title=`osascript -e 'tell app "iTunes" to current stream title'`
echo '[artist] - [song]'
echo $title
echo -n 'artist => '
echo -n $title | perl -ne '/^(.+) - (.+)/;print "$1\n";'
echo -n 'song => '
echo -n $title | perl -ne '/^(.+) - (.+)/;print "$2\n";'
echo -n 'current track => '
osascript -e 'tell app "iTunes" to name of current track'