/* The prius ipod/usb interface sucks for scrolling through hundreds of artist. My solution is to force the artist that I don't care about (compilation, singles, etc) to the bottom of the list. To use this, change the Sort Artist to 99999 for every artist that you want at the bottom of your Artist list, change the file extension of this file to .js, then run (double-click) this program. It will set the Sort Artist to "99999 Artist Name" so that you'll have a second, alphabetic list at the bottom of your normal list. see: http://kenny.aust.in/code/99999-sort_artist.txt */ var iTunesApp = WScript.CreateObject('iTunes.Application'); var tracks = iTunesApp.LibraryPlaylist.Tracks; var num = tracks.Count; for (var i=1; i<=num; i++) { var track = tracks.Item(i); if (track.SortArtist == '99999') { track.SortArtist = track.SortArtist + ' ' + track.Artist; } }