Rate iTunes songs on a wider scale

Feb 01, '05 10:08:00AM

Contributed by: taxi

While playing around with AppleScript and song ratings (based on a program for saving ratings in the Comment tag), I realised that iTunes can handle any rating within the range 0 to 100. You can set it to larger or smaller values than this, but it will be changed to either limit.

This can provide flexibility in terms of ratings: you are not limited to five (or six, although I use no stars as 'unrated') discrete ratings. When you sort by rating, iTunes will take into account the actual value, not the displayed number of stars. The AppleScript code required to set the rating of the currently playing song to 95% is:

tell application "iTunes"
  set rating of current song to 95
end tell
Note that values less than 100 will display 4 stars, even if they are greater than 90 -- values are rounded down to the next lowest multiple of 20.

Comments (32)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050131061622132