User Tiketti has posted a script on the iLounge forums that will allow you to adjust your play counts in iTunes 9.
Dim iTunesApp, currTrack, newPlayCount
Dim prompt, title, defaultValue
Set iTunesApp = WScript.CreateObject("iTunes.Application")
Set currTrack = iTunesApp.CurrentTrack
prompt = "New playcount:"
title = currTrack.Artist & " - " & currTrack.Name
defaultValue = currTrack.PlayedCount
newPlayCount = InputBox (prompt, title, defaultValue)
If IsNumeric(newPlayCount) Then
If newPlayCount >= 0 Then
If Len(newPlayCount) > 0 Then
currTrack.PlayedCount = newPlayCount
End If
End If
End If
- Copy this code into Notepad.
- Save the file as SetPlayCount.vbs (the file name doesn’t matter; just make sure it’s a .vbs file)
- In iTunes, play the song whose play count you want to adjust; double click the script you just saved.
- Enter the desired play count in the input box.
A few things to note… Unlike the script for versions 8 and earlier, you must have the song playing. If you only highlight the song as before, you’ll receive a script error.
Since this script works only on the song that is playing, it won’t work on multiple tracks.
Thanks, Emma, for the tip!





{ 9 comments… read them below or add one }
The post you linked to is from 2004 — is there a more recent discussion?
I used scripts to update playcount and last played quite often, so I hope to find updated scripts. Thanks!
question:what do u mean by “Enter the desired play count in the input box.” could u please explain step 4 a bit more thnx
@owen – when you double-click the script to run it, it will pop up a dialog box asking you for the new play count. This is where you put in the desired number.
This script no longer works with the most current version of itunes, when selecting playing the song, and typing the slected play count # an error message follows stating that the track is not modifiable. could someone please work on a new or updated script
The latest version is itunes 9.0.2.25
@Anthony – I just tried using the script again (iTunes 9.0.2.25) and it worked fine.
Unfortunately, I can’t give any suggestions, other than maybe check to see that the script was copied exactly?
Good luck
does this work for the pc? Every time I play my song and double click the file it just opens up the notepad file :( and yes the extension is .vbs . . . . so idk what it going on.
Thank you! This was a big help to me =) Worked perfectly.
Uhh, i cant save it as a .vbs help.