dougscripts.com

April 26 2007 - 9:51 am

MPAA Ratings

Several people have asked me if it is possible to add or change the MPAA ratings of TV Shows and Movies via AppleScript. From what I gather, the simple answer is no. As far as AppleScript goes, there is no such thing as a "MPAA rating" property which can be directly accessed. As far as I can tell (and I haven't spent a lot of time investigating this), video files downloaded from the iTunes Store contain the MPAA data. For instance, my "Daily Show" video files contain some info that looks like this: "us-tv|tv-14|500|". This can also be seen in the XML file in the Content Rating node--remember that the XML file is written out by iTunes, not read in by iTunes, so changing the XML file does nothing. I actually opened one of video these files in TextEdit, changed the "tv-14" of this string to "tv-ma", and after saving the file, "TV-MA" appeared in the Track Name of the show. It took quite a while, but I'm sure a perl routine could do it faster. But be that as it may, I am not sure how to add an MPAA rating to a file which you may have gotten by some means. I am aware that the program Losify (which I recommend!) is able to do it, but the file does need to be re-written.

Site contents © 2001 - 2024 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.