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


Click here to return to the 'Overcome iTunes' criteria for a skipped track' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Overcome iTunes' criteria for a skipped track
Authored by: gwetzler on Dec 22, '08 08:15:47AM
I actually refined this script since I submitted it.
tell application "iTunes"
	if (current track exists) and (player state is not stopped) then
		set a to 2 -- seconds
		set b to 20 -- seconds
		set c to player position
	end if
	if c is greater than b then
		set player position to a
		next track
	else if c is less than a then
		set player position to a
		next track
	else
		next track
	end if
end tell


[ Reply to This | # ]
Overcome iTunes' criteria for a skipped track
Authored by: Black on Dec 22, '08 09:19:43AM

Why is this a refinement? Is there some benefit to not moving the play position if you are inside that magic 2-20 second window? If you just want this to always skip to the next track (which your new script adds, why not just put the next track outside of the if?



[ Reply to This | # ]