Created
May 10, 2011 08:26
-
-
Save tobiastom/964098 to your computer and use it in GitHub Desktop.
AppleScript to jump back for some seconds in iTunes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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