Created
September 5, 2018 01:59
-
-
Save jdbrice/6828a3262c1979240ff5ef5609858f17 to your computer and use it in GitHub Desktop.
apple script for spotify now playing in better touch tools
This file contains hidden or 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
| 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 | |
| end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment