Fix Played Tracks with Empty Playcount in iTunes

I have a quite large iTunes library, and I’m rather anal about keeping my metadata clean and up to date. In an earlier release of iTunes 12 there was a bug. Every so often after a song played, the Play Count would fail to increment, but the Last Played would update.

Searching my library, I found 74 tracks that had this issue.

I found this irritating and inaccurate, so I set forth finding a way to correct it.

I wrote the following simple AppleScript to set the playcount of such tracks to 1.

All you need to do is either paste the following into the 'Script Editor' or download it and run it. See video below if you need help running it once it’s open.

To view this video please enable JavaScript and upgrade to a web browser that supports HTML5 video