Skip to content

Instantly share code, notes, and snippets.

@cdeister
Created July 2, 2017 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeister/88b00c70982d1d4a81054ddd5e8cc8a3 to your computer and use it in GitHub Desktop.
Save cdeister/88b00c70982d1d4a81054ddd5e8cc8a3 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 on the MacBook Pro TouchBar
-- More info here: https://lucatnt.com/2017/02/display-the-currently-playing-track-in-itunesspotify-on-the-touch-bar
-- modified with VOX's dictionary
if application "VOX" is running then
tell application "VOX"
if player state is 1 then
return (get artist) & " - " & (get 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