How to change the play count number in iTunes Nov15

Tags

Related Posts

Share This

How to change the play count number in iTunes

It’s been awhile since I posted some sort of tech/computer thing on this blog, but when I was using this little tip myself today, I thought I’d share it.  I can’t remember how I happened upon this, but I wanted to pass on the info.

NOTE: This is for Windows.  I have no idea how you’d do this on a Mac.

One thing I’ve noticed about iTunes is that not everything is easily changeable.  For instance the play counts.  There’s been times where I’ve accidentally deleted an album with playcounts, and wanted to get back what I had.  Or I’ve imported a new version of an album, and I wanted to transfer over my playcounts, but you can’t do that in iTunes itself without resorting to playing the track the number of times you want, and shifting the slider bar to the last two seconds so the playcount gets increased.  Those kind of tricks aren’t needed anymore.  Just follow these steps.

Open Notepad and put the following text in it:

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

Save the file as “SetPlayCount.vbs”, putting it in some easily accessible location.  When you double click on it, a box will pop up, asking you what you want the playcount to be.

One caveat, it only works on one song at a time.  It will be the “selected” song.  Whether it’s playing or not, it will only edit the one track that you have highlighted in iTunes.  If iTunes isn’t running, or you don’t have anything selected (like you just started iTunes), it will error as well.

It’s not perfect, but it is useful if you want to change the playcount of an individual track in iTunes.