Tiketti
New member
Update playcount/last played manually with these scripts
I made a small and simple script to edit a song's playcount. Why, you ask. Sometimes you might listen to low quality song 10 times on your iPod, decide to re-rip it with better quality, and replace the old copy with the new. I personally like to "transfer" the playcount to the new copy of the old song.
Somebody propably has already made something similar to this, but here's my take on it. Feel free to use it and abuse it, it's only a few lines of code.
Here you go:
Copy-paste the above text in Notepad and save it as SetPlayCount.vbs.
To use it the script, play the song you want to edit in iTunes, double click the script file, feed new playcount into the inputbox. That's it.
I made the script for my own personal use and have tested it on my own computer. As you can see from the listing, it really shouldn't do anything critical, but I can't guarantee anything.
Hope that makes sense and somebody finds it useful.
I made a small and simple script to edit a song's playcount. Why, you ask. Sometimes you might listen to low quality song 10 times on your iPod, decide to re-rip it with better quality, and replace the old copy with the new. I personally like to "transfer" the playcount to the new copy of the old song.
Somebody propably has already made something similar to this, but here's my take on it. Feel free to use it and abuse it, it's only a few lines of code.
Here you go:
Code:
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
To use it the script, play the song you want to edit in iTunes, double click the script file, feed new playcount into the inputbox. That's it.
I made the script for my own personal use and have tested it on my own computer. As you can see from the listing, it really shouldn't do anything critical, but I can't guarantee anything.
Hope that makes sense and somebody finds it useful.
Last edited: