Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

An AppleScript to batch-reduce iTunes song ratings Apps
I was finding that I had far too many songs in my library with ratings from 3 to 5 stars, and that I had virtually no songs at the 1 or 2 star rating. So, I hacked up this script which will take all songs in the current playlist and knock them down by one star. As well, the script will keep single-star songs at one star, so they don't become unrated, and will not loop unrated songs over to 5 stars.
tell application "iTunes"
  set currentList to view of front window
  set rating_change to 20
  repeat with curTrack in (get every track of currentList)
     
    if rating of curTrack is greater than rating_change then
      set rating of curTrack to (rating of curTrack) - rating_change
    end if
    
  end repeat
end tell
[robg adds: I haven't tested this one.]
    •    
  • Currently 3.00 / 5
  You rated: 5 / 5 (2 votes cast)
 
[6,288 views]  

An AppleScript to batch-reduce iTunes song ratings | 4 comments | Create New Account
Click here to return to the 'An AppleScript to batch-reduce iTunes song ratings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to batch-reduce iTunes song ratings
Authored by: Anonymous on Jan 11, '05 10:44:29AM

Why not submit this over on Doug's Applescripts? Much larger audience for this sort of thing.

[ Reply to This | # ]

An AppleScript to batch-reduce iTunes song ratings
Authored by: cchristner on Jan 11, '05 05:53:27PM

Seems a bit complicated, try this (iTunes Ratings column must be visible):

1. Click Ratings column header to sort on ratings

2. Select desired songs (all 4-star ratings, for example)

3. File > Get Info

4. Click 3 stars, then OK

You're done!



[ Reply to This | # ]
An AppleScript to batch-reduce iTunes song ratings
Authored by: Mr. H on Jan 11, '05 05:59:49PM

Or you could:

1) Select all songs in playlist.

2) Control-click to bring up contextual menu.

3) Re-rate songs to required rating.



[ Reply to This | # ]
An AppleScript to batch-reduce iTunes song ratings
Authored by: osxpounder on Jan 12, '05 05:38:44PM

That would change them all to the same rating.

---
--
osxpounder



[ Reply to This | # ]