SHARE
TWEET

Untitled

a guest May 19th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ITTrackKindFile = 1;
  2.  
  3. var iTunesApp = WScript.CreateObject("iTunes.Application");
  4. var mainLibrary = iTunesApp.LibraryPlaylist;
  5. var tracks = mainLibrary.Tracks;
  6.  
  7. for(var i = 0; i < tracks.Count; i = i + 1) {
  8.     var currTrack = tracks.Item(i+1);
  9.     if (currTrack.Kind != ITTrackKindFile)
  10.     continue;
  11.     currTrack.AlbumRating = 1;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top