samedi 4 juin 2016

iTunes 12 Reset Play Counts (Plays)

Apple in their infinite wisdom removed a feature that many of us use to manage audiobooks with smart playlists. That is the Reset Plays menu item.

Prior to iTunes 12, you could select a set of tracks, right click and choose Reset Plays and it would set the play count to 0.

Helpful when you use a smart playlist for a Book where the rules are:
Playlist is Book_All_Tracks
Plays is 0

Combine this playlist with the Remember Playback position and you can always find your place in a multi-CD audio book.

In iTunes 12 they removed this feature. Who know why.

Here is a work around:
Save the following script as resetSelectedPlays.js I assume that you'll put it in a scripts folder at the root of your C Drive.
Code:

var iTunesApp = WScript.CreateObject("iTunes.Application");
var mainLibrary = iTunesApp.LibraryPlaylist;
var tracks = iTunesApp.SelectedTracks;
var numTracks = tracks.Count;
var i;

for (i = 1; i <= numTracks; i++)
{
var currTrack = tracks.Item(i);
currTrack.PlayedCount = 0;
}
WScript.Echo("Done");

Save the following as a resetSelectedPlays.bat
Code:

@echo off
C:
cd C:\scripts
cscript resetSelectedPlays.js //nologo

Now you can open iTunes, select the tracks that you want to reset the playcount to 0 and then run the resetSelectedPlays.bat file.

Of course if you want to store the files in a different location, you'll have to tweak the bat file accordingly. You can have the BAT file on the Desktop for easy access. Or make a shortcut to it located elsewhere.

Now we have our reset plays feature added back to iTunes 12. The script will work in previous iTunes too, but they have the feature built in.


via iLounge Forums http://ift.tt/1WAfGJz

Aucun commentaire:

Enregistrer un commentaire