Rounding Ratings

I like that iTunes displays half-star ratings, but I want my tracks rated 51-59 to display this way too. That doesn’t work, but if you use the following script, it will round the ratings of selected tracks to the nearest half-star:

1     tell application "iTunes"
2       repeat with trk in selection
3           set rating of trk to ((rating of trk) / 10 as integer) * 10
4       end repeat
5     end tell

I hope Apple don’t include the functionality of odd-rated tracks to play different amounts, otherwise I’ll need to re-rate all of my music. Again.

blog comments powered by Disqus