I've always hated how itunes doesn't let you order by file path. It's really an overt ommission intended to get people to abandon their folder structures and have itunes take control. Anyways I've held off since I've built up a good system which works for me and I hoped that maybe one day it would get patched into it. Well it didn't look like they'd ever put it in so I started looking around for alternatives and I found one which works.
It's a script I modified from one of the sample scirpts that come with the iTunes COM SDK, it was pretty easy and it works great!
Just highlight the code, save it to a textfile, rename the textfile extention from .txt to .js and then run. It'll seem like it isn't doing anything but it is and you'll see it if you enable the comments collumn in itunes. It takes a while but eventually it'll finish the whole library and pop a msg saying that it's done. Here it is:
var ITTrackKindFile = 1;
var iTunesApp = WScript.CreateObject("iTunes.Application");
var mainLibrary = iTunesApp.LibraryPlaylist;
var tracks = mainLibrary.Tracks;
var numTracks = tracks.Count;
var i;
while (numTracks != 0)
{
var currTrack = tracks.Item(numTracks);
// is this a file track?
if (currTrack.Kind == ITTrackKindFile)
{
currTrack.Comment = currTrack.Location;
}
numTracks--;
}
WScript.Echo("Location to comments done!");
No comments:
Post a Comment