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

Overcome iTunes' criteria for a skipped track Apps
I have many smart playlists in iTunes that rely on skip counts. For some reason, iTunes only counts a track as skipped if the track is advanced during the first two to 20 seconds of the track. 2br To overcome this limitation, I created a simple Applescript which moves the position of the track to two seconds, and then advances the track:
property differential : 2 -- seconds

tell application "iTunes"
  if player state is not stopped then
    set player position to (differential)
    next track
  end if
end tell
Save this to your user's Library » iTunes » Scripts folders for easy access within iTunes.
    •    
  • Currently 3.40 / 5
  You rated: 2 / 5 (5 votes cast)
 
[9,578 views]  

Overcome iTunes' criteria for a skipped track | 9 comments | Create New Account
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 | # ]
Overcome iTunes' criteria for a skipped track
Authored by: DougAdams on Dec 22, '08 09:13:59AM
You could also set the track's skipped count and skipped date properties before doing the next track:

tell application "iTunes"
	if player state is not stopped then
		tell current track
			try
				set skipped count to (get skipped count + 1)
				set skipped date to (get current date)
			end try
		end tell
		next track
	end if
end tell

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Overcome iTunes' criteria for a skipped track
Authored by: Black on Dec 22, '08 09:21:46AM

I haven't tried this, but wouldn't this double increment the skip count if you invoked it in the magic interval?



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

Yes.

---
Doug's AppleScripts for iTunes
dougscripts.com



[ Reply to This | # ]
Overcome iTunes' criteria for a skipped track
Authored by: DougAdams on Dec 30, '08 11:54:27AM
I have posted an updated alternative here.

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Overcome iTunes' criteria for a skipped track
Authored by: DougAdams on Dec 22, '08 09:31:44AM

Oops, didn't finish.

Yes. But you could check the player position to see if it's less than 20 seconds before the settings are updated.

---
Doug's AppleScripts for iTunes
dougscripts.com



[ Reply to This | # ]
Overcome iTunes' criteria for a skipped track
Authored by: PopMcGee on Dec 22, '08 10:03:10AM

The base problem of this is that iTunes has no way to actually "downgrade" a track while playing, as in "I hate this track, I should get rid of it soon".



[ Reply to This | # ]
Overcome iTunes' criteria for a skipped track
Authored by: DougAdams on Dec 22, '08 10:30:32AM
The base problem of this is that iTunes has no way to actually "downgrade" a track while playing, as in "I hate this track, I should get rid of it soon".
What would you suggest? An AppleScript can be created that does one of these things, for example:
  • Moves the current hated track to a "I Hate These" playlist
  • Changes the rating
  • Deletes the track and its file immediately from iTunes
  • Skips the track, updates skip count, last played, etc

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]