Check out this post for a new script.

If, for whatever reason, you find yourself needing to adjust the play count of a song or songs in iTunes, here’s a really simple way to do it without having to muck through XML files. I don’t remember where I found this script, but it works like a charm, so I’ll pass along. Thanks to the original author, whoever you are.
- Download this file: AdjustiTunesPlayCount.txt (Right-click, “Save Link As…”)
- Change the file extension from .txt to .js
- Right-click the file and choose Edit. (If you choose Open, it will run the script; choose Edit)
- Find the line currTrack.PlayedCount = 64 and change “64″ to your desired play count. Save and Close
- In iTunes, highlight/select the songs whose playcounts you want to change.
- Double-Click the AdjustiTunesPlayCount.js file to run the script. Voila.





{ 1 trackback }
{ 34 comments… read them below or add one }
Thanks so much for posting this script!! I have created a few Smart Playlists based on play count (i.e. play only songs where play count = ‘0′ or ‘1′ so I can listen to songs that never come up in shuffle) and I now need to restore my iPod. But when I re-load all my songs from my external hard drive, it automatically sets the play count to zero. With this script I can rebuild my play counts which I stored in another field temporarily. Thanks again!
Glad you were able to get some use out of it
Thanks, works amazing!
Thank you, Bro, It really helps me!
is it possible to do this through the iPod?
@Nick – I don’t believe so. iPod keeps track of play counts – if you watch play counts in iTunes before and after you sync your iPod, you’ll notice they change – but I don’t think there’s any way to access them.
Mine just opens up with dreamweaver when I double-click it.
It just opens up in dreamweaver if I try to double-click it to run the script.
Thanks very much for this, works a treat.
The one thing I’m wondering is if there’s be a way to add another line below currTrack.PlayedCount = 1
which would set the “Last Played” value to the current time, as well as changing the play count?
Thanks again
Wow, that’s just awesome. Such a simple script too!
Wow. Thank you so much. It worked like a charm and such an easy script too!
Chris,
Thanks a-bunch. Just what I have been looking for. Somehow I have many duplicate songs (wonder if it was due to restoreing my library) and noticed playcounts now growing on these new dups, so I want to put them all on one file. don’t want to loose those large play counts.
oh..just notice you like space adventure (pictures at the bottom) – do a Google on APOD (Astronomical Picture of the Day, for over a decade of postings) and you’ll see daily posts by experts – I tell everyone about these awesom images – the most beautiful images of galaxies, starts, planets, and Earth. Thanks again and Engjoy!
I’m glad you’re able to get some use out of the javascript.
I’m quite familiar with APoD. I came across it several years ago, and it’s been a great source of information!