Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Embed iTunes Ratings directly into file - backup/restore

Embed iTunes Ratings directly into file - backup/restore
Thread Tools
m021478
Dedicated MacNNer
Join Date: Jul 2007
Status: Offline
Reply With Quote
Oct 30, 2009, 12:17 AM
 
I have spent hours and hours tagging my iTunes music with appropriate 'Star-Ratings' based on my listening preferences. The mere thought of accidentally losing all of this time and the detailed ratings I've applied is terrifying.

Aside from simply exporting my iTunes "Master Library.xml" file on a regular basis, I would like to try and find a way to somehow physically embed the Star-Rating score of each given track directly into the track itself in the Finder (probably by annotating the spotlight comments field for each given track).

Why would I seek doing something like this?

As a photographer, I shoot my photographs in RAW format, and I typically wind up converting from my Canon proprietary RAW images (CR2) into Adobe's Digital Negative (DNG) format. One of the big reasons I do this is so that I don't have to deal with the .xmp sidecar file (which contains all of the RAW adjustment and editing information for image). With DNG, what would have normally been a separate, external metadata file containing a files unique adjustment information is actually embedded into the file itself. This prevents cases in which the sidecar files can get lost or corrupt. I like have a self contained entity with all of the relevant information I need for a given image (or music file for that matter)

Rather than having to rely on exporting my iTunes Library and considering that as my sole backup of my hours and hours of ratings metadata for my music, I'd like to find a way to embed this information directly into the file itself, which in theory could somehow be re-extracted at a later date if need be and re-imported back into a new/different iTunes Library such that certain metadata fields such as the ratings score in my case, would be maintained.

To simplify, my ideal solution would be an applescript that would gather all of my tracks in iTunes with a 5-star rating, and it would then apply a spotlight comment ~ like "Rating=5" ~ to each of those tracks in the Finder. It would then do the same thing for all tracks rated as 4, 3, 2, and 1-star.

Not really sure how this spotlight comment could then be used to re-import the tracks into a different/new iTunes library while maintaining this rating info, but I wouldn't put it past some of the scripting gurus on these forums to think up a way...

Any suggestions would be greatly appreciated... Thanks!
-------------------------------------------
Please don't tell me to "search the forums" before posting. I can assure you that I already have!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:26 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,