Skip to content

Instantly share code, notes, and snippets.

@tobiastom
Created May 10, 2011 08:26
Show Gist options
  • Save tobiastom/964098 to your computer and use it in GitHub Desktop.
Save tobiastom/964098 to your computer and use it in GitHub Desktop.
AppleScript to jump back for some seconds in iTunes
tell application "iTunes"
if player state is playing then
set jumpInSeconds to 20
set currTime to get player position
if currTime < jumpInSeconds then
set currSkip to 0
else
set currSkip to currTime - jumpInSeconds
end if
set player position to currSkip --skip to new position
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment