Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ASP
if application "Spotify" is running then
tell application "Spotify"
playpause
end tell
else
tell application "Spotify" to activate
tell application "Spotify"
playpause
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment