“Purple Rain” Booster: Lowers iTunes Ranking By One Star For Every Other Album
Description
I saw a tweet that made me laugh:
“I’ve run out of stars to rate “Purple Rain”
in iTunes. Need to write an applescript that will lower all other albums by one star.”
I couldn’t agree more with @sugarfreejones, so here’s that script! It will lower every non-”Purple Rain” album in your current view/window/playlist by one star!
And for those with different tastes, just type in the name of your favorite album in its place. (sigh)
The Code
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
if album of curTrack does not contain "Purple Rain" then
set rating of curTrack to (rating of curTrack) - rating_change
end if
end if
end repeat
end tell
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
if album of curTrack does not contain "Purple Rain" then
set rating of curTrack to (rating of curTrack) - rating_change
end if
end if
end repeat
end tell
Quick Links
Want to open the script right away?
Click here to open it in your Script Editor
Click here to open it in your Script Editor
Using Snippets to manage your code?
Save this into Snippets
Save this into Snippets
New To AppleScript?
- Here's how to use the AppleScripts you find here and -- to make them even easier to use -- here's how run them with simple keyboard shortcuts!
- Be sure to check out other great AppleScripts in the Veritrope.com Code Library -- and share your own AppleScript projects using the quick submission form!




No Comments / Add Yours!