Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (16 sloc) 347 Bytes
#!/bin/sh
get_info() {
TYPE="$1"
osascript -e 'tell the application "iTunes" to get the '$TYPE' of the current track'
}
while true
do
ID="`get_info id`"
if [ "$ID" != "$LAST_ID" ]
then
LAST_ID="$ID"
growlnotify -n 'Growl to the Tunes' -a iTunes -m "`get_info artist`
`get_info album`" -t "`get_info name`"
fi
sleep 1
done
Something went wrong with that request. Please try again.