UPDATED: Export Smart Playlist Criteria v1.2
Another couple of scripts that need to reference the XML file: Export Smart Playlist Criteria is a collection of two scripts, "Export Smart Playlist Criteria" and "Export Selected Smart Playlist Criteria", each export just the criteria of the selected Smart Playlist(s) to an XML file. This file can then be imported to any iTunes using the "Import" command in the File menu. Handy for backing up Smart Playlist criteria or for sharing your Smart Playlists' criteria with other users. The latest version of each script is able to locate the XML file of a loaded multiple library.
UPDATED: Assimilate View Options v1.2
The script Assimilate View Options has been updated since one of its routines attempted to display the entire library playlist and this is no longer possible in iTunes 7.1. The script re-creates your playlists, excepting Smart Playlists and "special" playlists (Purchased, Podcasts, Party Shuffle, Audibooks, TV Shows, and Movies), then deletes the old ones so all of the View Options are the same as the main Music library (taking advantage of the fact that new playlists acquire the Music library's View Options).
Sort iTunes 7.1 by Release Date
iTunes 7.1 adds a "Release Date" sorting field, which I hadn't noticed until this morning. Tracks that come down from the iTunes store, including podcasts and videos, seem to use it. Unfortunately, it is not accessible by AppleScript or any manual-inputting means that I can determine.
Make The Loser Sing!!!
We love it at my house when someone gets booted from (the-campy-and-we-oh-so-love-to-hate) American Idol and then they have to sing. Make The Loser Sing! Sing, Loser! Sing!
More About PDFs
In my post yesterday, I suggested using "PDF Adder" to add PDFs to your iTunes. Duh. I neglected to mention that also in the PDF Adder collection is a PDF Service Workflow called "Add to iTunes...". When installed in your [username]/Library/PDF Services folder it appears as an option under the "PDF" drop-down in any app that supports a Print dialog. So, find a page in Safari, hit "Print" and select "Add to iTunes...". It will ask for a name, artist, and album for the PDF and then add it to iTunes.
PDF Booklet via Safari
I've been messing with Wikipedia to get info for various artists (see Search Wikipedia). But I wanted to be able to save the info, perhaps even including it in iTunes for future reference. Can do. Today I tried this trick: use Safari to go to the Wikipedia page containing info on your favorite artist. Click "Print" in Safari's File menu and then click "Save as PDF" in the PDF drop-down. Optionally, hit the "Preview" button in the Print dialog to see what the PDF will eventually look like after it's saved and then save it as a PDF.
Once the PDF has been saved, use PDF Adder to add it to iTunes. The "PDF Adder" script in that collection will let you choose an existing PDF file and add it to iTunes and provide Album and Artist tags to the new PDF so that it will be sorted with the associated Album. If your iTunes Advanced>General Preferences is set to "Copy files to iTunes Music folder when adding to library" the PDF will be copied to your iTunes Music Library folder, and the original PDF can be Trashed.

As far as Wikipedia goes, it appears they use a "print.css" file that fomats the page for printing. This maintains formatting while eliminating the sidebars and such. Other sites may do so as well--like the one you're looking at now ;).
How To Write Your First AppleScript
Perceval McElhearn has posted How To Write Your First AppleScript at Macinstruct. It's a nice intro for those of you who want to get started. BTW: Perceval is the descendant of my good friend and Mac aficionado Kirk McElhearn. The nut don't fall far from the tree.
Show Entire Library Workaround
For those of you iTunes 7.1 users who are dismayed by the inability to display the entire library (as noted in this post) here's a workaround. Create a Smart Playlist whose only criteria is "Size is greater than 0" and click on Live updating. Name this new SP something obvious like "Everything" or "Full Library" or what have you. Then create a script like this, substituting the name of your SP where appropriate:
tell application "iTunes" set view of front browser window to playlist "Everything" end tell
![]()
Save it to your iTunes Scripts folder and give it a shortcut so you can easily display the SP when necessary. Thanks to Correspondent George Dick for the idea.
VoiceOver Accessible
From the comments at Chris Breen's What's new in iTunes 7.1 at Playlist:
One feature that undoubtedly escape[d] most peoples['] notice is [the] fact that iTunes is now accessible with VoiceOver. This is a major step forward for sight impaired individuals. In the past VoiceOver could not access anything within iTunes. Now virtually everything in iTunes can be navigated and controlled with VoiceOver....Kudos go to Apple for getting iTunes accessible.
No More View library playlist 1
Correspondent George Dick reports--and I have verified--that you can no longer display library playlist 1, that is, the entire iTunes library, with a script such as this:
tell application "iTunes" set view of front browser window to library playlist 1 end tell
![]()
Bummer.

