Skip to content

Instantly share code, notes, and snippets.

@zaybiz
Created September 20, 2012 21:08
Show Gist options
  • Save zaybiz/3758362 to your computer and use it in GitHub Desktop.
Save zaybiz/3758362 to your computer and use it in GitHub Desktop.
Spotify radio log to desktop
tell application "Spotify"
set _track to ""
try
repeat
if player state is not stopped then
if (_track is not equal to the spotify url of current track) then
set _track to the spotify url of current track
log _track
do shell script "echo " & _track & " >> $HOME/Desktop/spotify.txt"
end if
end if
delay 30
end repeat
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment