Skip to content

Instantly share code, notes, and snippets.

@rianrainey
Forked from traviskroberts/rdio.scpt
Created September 25, 2014 14:42
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 rianrainey/cdc1de9455fa13b247d9 to your computer and use it in GitHub Desktop.
Save rianrainey/cdc1de9455fa13b247d9 to your computer and use it in GitHub Desktop.
if application "Spotify" is running then
tell application "Spotify" to playpause
else if application "iTunes" is running then
tell application "iTunes" to playpause
end if
if application "Spotify" is running then
tell application "Spotify" to next track
else if application "iTunes" is running then
tell application "iTunes" to next track
end if
if application "Spotify" is running then
tell application "Spotify" to previous track
else if application "iTunes" is running then
tell application "iTunes" to previous track
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment