Skip to content

Instantly share code, notes, and snippets.

@Zettt
Created May 23, 2015 08:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zettt/c8d74ee70180cad6dfd2 to your computer and use it in GitHub Desktop.
Save Zettt/c8d74ee70180cad6dfd2 to your computer and use it in GitHub Desktop.
Playhead forward/backward - Because Spotify has stupidly removed the possibility to skip forward and backward using keyboard shortcuts, we now have to resort to do this via AppleScript. Well, it could be harder. The script below jumps 3 seconds ahead. Bind to keyboard shortcuts such as →. You may use ⇧→ to skip 10 seconds. This is how it was in …
tell application "Spotify"
if player state is playing then
set playPos to player position + 3.0
set player position to playPos
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment