Created
July 2, 2017 04:32
-
-
Save cdeister/88b00c70982d1d4a81054ddd5e8cc8a3 to your computer and use it in GitHub 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
-- 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