Created
September 20, 2012 21:08
-
-
Save zaybiz/3758362 to your computer and use it in GitHub Desktop.
Spotify radio log to desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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