iTunes 4.9 and Ratings

Cool... This works:

   iTunesLib.IiTunes iTunes = (iTunesLib.IiTunes)new iTunesLib.iTunesAppClass();
   IITTrack track = iTunes.CurrentTrack;
   track.Rating = 60;

I was trying to set ratings in previous versions of iTunes and not having much luck; finally I can write something to move all my song ratings from the Windows Media Player database into the iTunes database.

iTunes still doesn't import ratings when you import the XML file.