Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Skip a few seconds forward/backward in iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Skip a few seconds forward/backward in iTunes
Authored by: xhinter on Apr 06, '13 09:12:19AM

I use the following scripts in iTunes 11.0.2 & OS X 10.8.3

Step forward

property step : 3
tell application "iTunes"
	if player state is playing then
		if ((player position) + step) ≤ (duration of current track) then
			set (player position) to ((player position) + step)
		else
			set (player position) to (duration of current track as integer)
		end if
	end if
end tell

Step backward

property step : 3
tell application "iTunes"
	if player state is playing then
		if ((player position) - step) ≥ 0 then
			set (player position) to ((player position) - step)
		else
			set (player position) to 0
		end if
	end if
end tell


[ Reply to This | # ]