dougscripts.com

Tips and Info

July 2 2007 - 12:10 pm

iTunes Maintenance

Perhaps you change your car's oil on a regular schedule (you should). You pay bills on a regular schedule. Perhaps you have other household routines you schedule on a regular basis--cleaning bathroom, changing sheets, clipping the dog's nails, weeding the garden, Swiffering the computer desk, and so on.

How about tending to your iTunes music collection?

Many people who frequent this site are looking for AppleScript solutions that will instantaneously completely transform their un-tidy iTunes Library into a pristene-perfect Library of Congress-quality digital music collection. To the contrary, I've found that there's no need to try and get iTunes maintenance done in one fell swoop. If you take your time to manicure your iTunes music regularly you will not only avoid frustration but maybe get to know your collection better.

I spend only about a half-hour a week pruning, updating, re-tagging, deleting, Smart Playlisting.... Usually, the best time for me is on Saturday morning. Just after the second cup of tea and before my wife announces (decrees) the Weekend Activities. Here's my regimen:

  • Find duplicates - Using either iTunes' own "Show Duplicates" or Dupin, I assemble a list of possible duplicates. This assemblage contains the (so-called) "original" track and the (so-called) duplicate(s). I actually listen to a portion of each track, and/or check the bit rate and sample rate, and/or do a "Get Info", and/or check the file (using "Show In Finder", Command/R) to make sure which is the "original" and which is/are the "duplicate/s". Delete accordingly. (See iTunes Help Menu "Keyboard Shortcuts" on how to delete tracks/files from a playlist.) Remember, I don't check every track since I only have a half-hour on Saturday before wife says clean garage.
  • Check for empty tags - Do a sort by Album. Find tracks with blank albums. Do a sort by Artist. Find tracks with blank Artists. And so on with other tags. Correct, if necessary.
  • Check Artwork - I use artwork tool in TrackSift. Then I use Find Album Artwork with Google to locate artwork. Of course, you can always use iTunes own "Get Album Artwork" in the Advanced Menu.
  • Examine playlists - I'll often create temporary playlists (Smart and regular) and then forget about them. Now's the time to get rid of them.
  • Archive TV Shows and Movies - I subscribe to several TV Shows. When the season ended for "Ugly Betty" and "My Name Is Earl" I dumped the shows to DVDs and deleted the files from iTunes. Likewise, I delete episodes of "The Daily Show" after a couple of weeks; since they are so topical, unless there is a real keeper, they get deleted.
  • Always sort by Date Added - All my main libraries (Music, TV Shows, Audiobooks, and so on) are sorted by Date Added (newest on top) so I only have to scroll to the bottom to find out What The Deal Is. Archive 'em or delete 'em.

I certainly do other tasks which are me-specific, but the point is to do them regularly. Otherwise your library will almost certainly get out of control. Remember, you don't have to fix everything this Saturday. Take it one Saturday at a time.

July 2 2007 - 7:06 am

iTunes 7.3 - Bundled Apps

Last August, this article at Mac OS X Hints pointed out the differences between AppleScript Application and Application Bundles running on PPC and Intel Macs. At the time, I asked if Bundles displayed and worked correctly in iTunes' Script Menu on an Intel Mac--they did not. However, the original poster, Harry Dymond, just emailed me to let me know that iTunes 7.3 (and/or perhaps OS 10.4.10) resolves this issue.

June 13 2007 - 6:31 pm

FastScripts

I recently got an email nudge from developer Daniel Jalkut. He's the developer of the application FastScripts, among other things. He noticed that I provide instructions for setting keyboard shortcuts for iTunes scripts and thought I'd be interested in FastScripts. I admit that I have known about FastScripts for awhile but never got around to trying it out. Well, I finally did. FastScripts goes the Apple Scripts Menu one or three better. It supports keyboard shortcuts for AppleScripts in its menu (both application-specific and global) and has the nice effect of taking place as soon as you set a shortcut value (without having to re-start an application like you would have to do if you set shortcuts in Apple's Keyboard Preferences), and will also allow you to set shortcuts globally. FastScripts is shareware, but FastScripts Lite is free and will let you work with ten scripts. I highly recommend it.

May 31 2007 - 12:36 pm

iTunes Give and Take

Chris Breen discovers a Gotchya in iTunes 7.2: "If you burn a playlist of iTunes protected music to a CD in iTunes 7.2 and then rip that CD in the MP3 format (a trick people often use to remove the tracks? copy protection), those MP3 tracks won?t copy to an iPod. Try, and you?ll be told that the tracks are incompatible with the iPod." Those cheeky Apple devils!

May 31 2007 - 10:12 am

Your ID Is Showing

My Good Friend Kirk McElhearn points out that your iTunes Account ID is accessible to any smarty who can open your iTunes Plus files. Derek DeLong extrapolates this phenomenon to suggest that if you P2P your iTunes Plus files Apple may be able to track you. Seems to me another sort of smarty could wipe any account info from the file anyway (along with any other purchase info) if one really wanted to nefariously P2P.

May 31 2007 - 9:36 am

Locate .itc Artwork files

On the iTunes 7.2 info page, I've added a ham-handed script that will get the path to a selected track's .itc artwork file. It uses the persistent id properties of the current library and selected track to create the filename of the .itc file (eg: 855D16966D2635AE-E345A3A7AC7E50AF.itc), and UNIX find command to locate that file within the ~/Music/iTunes/Album Artwork folder. It then reveals the file in the Finder. Of course, more could be done with it, like converting to PNG or some such, more error checking, and so on. I've just been too busy to do much more with it ;)

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.

April 24 2007 - 8:11 am

Make sure iTunes mounts a networked music library - Mac OS X Hints

This tip at Mac OS X Hints, Make sure iTunes mounts a networked music library, provides a simple method to ensure that the network drive containing your iTunes Music folder is mounted when starting iTunes. Simply put an alias of the iTunes app on the networked drive, copy that alias to your Dock, and launch iTunes with that.

March 23 2007 - 1:15 pm

Save Imported CDs to New Location

This hint at Mac OS X Hints points out that holding down the Option key while loading a CD (if "On CD Insert" is set to "Import CD" or "Import CD and Eject") or when clicking the "Import CD" button will allow you to choose a destination to save the ripped CD tracks to other than your default iTunes Music folder (set in Preferences > Advanced > General). Even if you have "Copy files to iTunes Music folder when adding to library" checked iTunes will ignore that setting and "know" that the imported tracks' files are in your selected location. Could be handy!

March 16 2007 - 6:32 pm

Re-map Command-F to Activate Search

Rob Griffiths has posted a neat tip at his Mac OS X Hints Weblog at Macworld that describes how to Search local iTunes via Command-F. It explains how to assign Command-F to activate the iTunes search box rather than activating Full Screen View, and re-assign a new key combo for Full Screen View.

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.