Skip to content

Instantly share code, notes, and snippets.

@LucaTNT
Last active September 27, 2018 09:51
Show Gist options
  • Save LucaTNT/10850375935d5aab3811cc2fd44f9ed9 to your computer and use it in GitHub Desktop.
Save LucaTNT/10850375935d5aab3811cc2fd44f9ed9 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 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
@adilw3nomad
Copy link

thanks man, you got any other cool scripts for the touchbar ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment