Added spotify current track to tmux toolbar

This commit is contained in:
Nick Nisi
2012-06-13 11:37:52 -05:00
parent 05efca3313
commit 719e8154fa
2 changed files with 13 additions and 1 deletions

12
bin/spotify.applescript Normal file
View File

@@ -0,0 +1,12 @@
if application "Spotify" is running then
tell application "Spotify"
set theName to name of the current track
set theArtist to artist of the current track
set theAlbum to album of the current track
set theUrl to spotify url of the current track
try
return theName & " - " & theArtist
on error err
end try
end tell
end if