Skip to content

Instantly share code, notes, and snippets.

@jdbrice
Created September 5, 2018 01:59
Show Gist options
  • Select an option

  • Save jdbrice/6828a3262c1979240ff5ef5609858f17 to your computer and use it in GitHub Desktop.

Select an option

Save jdbrice/6828a3262c1979240ff5ef5609858f17 to your computer and use it in GitHub Desktop.
apple script for spotify now playing in better touch tools
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