![]() I just wanted to share my solution with you in case you ran into this same problem and wanted a head start on fixing it programmatically. ![]() Proceed with these steps at your own risk! This process and code are only designed to work on Mac OS X, and there's no warranty here for the code or anything, of course. It will generate an AppleScript as output that can be run on your Mac to automatically re-set all of the missing ratings!” “This PHP script will find songs in your iTunes Library without star ratings, and will then scour your specified backup files to find the most recent star rating for that file in case it was somehow removed or lost somewhere along the way for some reason. With some preprocessing (described below), the script that I wrote will output a custom AppleScript for your Mac that will reassign the most recently recovered rating when run for songs whose rating is missing but present in one or more of the backup files that you provide to it. That's the key here… I keep routine backups! You should, too. Because of this, I was able to write a script to find any songs that were not currently rated at all in my iTunes Library, and then have it look for the most recent rating that could be found amongst a series of backup iTunes Library files that I restored from a backup drive. Once it's rated, it stays rated… even if its rating is later changed to something else by me. I generally don't ever remove a song's star rating. …Not cool! But luckily, I was able to write some code to repair the ongoing damage. ![]() Turns out that's an iTunes Match issue.- Ben Guild February 10, 2015 The other day when I noticed that 800+ of my iTunes songs' star ratings had disappeared. This issue is actually, in fact, still happening to me periodically at this time of writing, even. I believe that this happened due to a bug involving the combination of iTunes Match being active on my Mac (yet disabled on my iPhone), and having iTunes configured to manually sync my music back and forth over USB to my iPhone via a few designated playlists that I have selected (and that's it). To put into perspective how this feels… some of these tracks I hadn't modified the rating for in over 10 years! Entire playlists were blanked out, and so were other tracks scattered across various albums in my library. A little over a week ago, I noticed that some songs' star ratings in iTunes had randomly disappeared.
0 Comments
Leave a Reply. |