Thesis Wordpress Theme brought to you by Astro-Geek:3000

iTunes: Manually Adjust Play Count in iTunes 9

by Christopher on September 23, 2009

If you’re using iTunes 8 or earlier, I have an earlier post that will allow you to manually adjust your play count.

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

  1. Copy this code into Notepad.
  2. Save the file as SetPlayCount.vbs (the file name doesn’t matter; just make sure it’s a .vbs file)
  3. In iTunes, play the song whose play count you want to adjust; double click the script you just saved.
  4. Enter the desired play count in the input box.
  5. 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 }

dave p. September 24, 2009 at 9:39 am

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!

Reply

owen November 9, 2009 at 6:23 pm

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

Reply

Christopher November 10, 2009 at 7:24 pm

@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.

Reply

Anthony December 16, 2009 at 5:39 am

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

Reply

Anthony December 16, 2009 at 5:41 am

The latest version is itunes 9.0.2.25

Reply

Christopher December 16, 2009 at 8:03 am

@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

Reply

Serenity December 22, 2009 at 12:59 pm

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.

Reply

Sarah December 25, 2009 at 11:19 pm

Thank you! This was a big help to me =) Worked perfectly.

Reply

Jimmi January 2, 2010 at 5:19 pm

Uhh, i cant save it as a .vbs help.

Reply

Leave a Comment

CommentLuv Enabled

Previous post:

Next post:

-->
How smart is your Theme?  How good is your support? Check out ThesisTheme for WordPress.

About Christopher

I love tech, but don’t have as much time or money to spend on it as I’d like. I get what I need to sustain my Geek vicariously through other sources and pass it along to you.

TwitterFacebookLinkedInDiggStumbleUponTechnoratiDeliciousFriendFeedRobot Skull

Popular Post

Recent Comments

Categories

Archives

Tag Cloud

-->

Twitter - follow me