Forked from LucaTNT/Spotify-now-playing-on-TouchBar.scpt
Created
June 23, 2017 15:36
-
-
Save tlindsay/6453819d1456716e20913a44896a706e to your computer and use it in GitHub Desktop.
This script can be used in conjunction with Better Touch Tool to display the currently playing track in Spotify on the MacBook Pro TouchBar. More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar
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
-- This script can be used in conjunction with Better Touch Tool to display the currently playing track on the MacBook Pro TouchBar | |
-- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar | |
if application "Spotify" is running then | |
tell application "Spotify" | |
if player state is playing then | |
return (get artist of current track) & " - " & (get name of current track) | |
else | |
return "" | |
end if | |
end tell | |
else | |
return "" | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment