Skip to content

Instantly share code, notes, and snippets.

@Bonno
Last active March 23, 2017 09:43
Show Gist options
  • Save Bonno/7cc336745d47d0bc6c862f6955f868c3 to your computer and use it in GitHub Desktop.
Save Bonno/7cc336745d47d0bc6c862f6955f868c3 to your computer and use it in GitHub Desktop.
Control spotify in OS X
- Open Automator and create a new Service
- Change "service receives selected:" [text] to [no input]
- Add the "run apple script" action to the main screen
- Enter and save the following three apple scripts
- Go to keyboard shortcuts preference pane and configure your shortcuts to the newly created services
try
tell application "Spotify"
previous track
end tell
end try
return
try
tell application "Spotify"
playpause
end tell
end try
return
try
tell application "Spotify"
next track
end tell
end try
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment