Apple has just released a set of AppleScripts for iTunes 2.0.3. Called iTunes Scripts for iTunes 2, the scripts offer a wide variety of automated canned tasks. With the release of version 2, Apple has made iTunes completely AppleScript-able. From Apple:
iTunes 2.0.3 includes new robust AppleScript support that lets you automate many of the tasks related to managing your music. To get you started, weive created a collection of useful script tools that you can download and easily install.
Apple has provided versions of iTunes Scripts for both OS 9.2 and OS 10.1