Welcome!

Download 466 (and counting) free user-contributed AppleScripts for Apple's iTunes that will help make managing your digital music collection easier and more fun!

What's AppleScript?

AppleScript is a simple Macintosh-only programming language that can control and automate actions on your Mac. AppleScripts written for iTunes can manage files and track information, create playlists, interact with other applications, and perform many other tasks which otherwise would be repetitive and time-consuming.

Cool! Where Do I Start?

Start browsing the site by using the scripts ↓ Menu link above. AppleScripts are gathered into these general Categories:

Or use the search boxes on every page to try and find something specific.

The right column displays the 10 Most Recently Added Scripts, the Top Eleven Downloads, Other Sites' Favorite Scripts, and 10 Random Scripts.

Check back often or subscribe to my RSS news feed and 30 Most Recent Scripts RSS to stay notified about new and updated scripts and info.

What's New...

September 3 '10 - 2:36 pm

UPDATED: Super Remove Dead Tracks v2.2

Super Remove Dead Tracks is up to version 2.2. I’ve disabled the routine that deletes empty playlists. If you liked that feature, you can restore it by editing the script. Otherwise this is just a maintenance release with some minor finesses.

September 3 '10 - 12:27 pm

UPDATED: Change Hidden iTunes Preferences v2.2

Change Hidden iTunes Preferences v2.2 includes the hack going around that restores the iTunes 10 title bar and control buttons to horizontal.

September 3 '10 - 10:41 am

Fix Automator Actions For iTunes 10

A quick fix for the problem of Automator Actions breaking with iTunes 10 is posted at Mac OS X Hints. It is related to the versioning routine I was talking about yesterday and iTunes’ version “10.0″ string.

September 3 '10 - 10:12 am

See Ya, CDDB

Here’s the scoop on Gracenote and CDDB: outta here, later.

September 3 '10 - 9:35 am

Gracenote Search MIA?

I’ve never known Gracenote (CDDB) to be down for maintenance, so it’s unusual to see a 404 when going to the Gracenote search page. What’s up with that?

September 2 '10 - 12:03 pm

iTunes 10 Breakage (Nothing Serious)

Some AppleScripts from this site use a routine that checks for the version of iTunes you are running. Some of the scripts that use these routines are broken under iTunes 10. So when running a script with iTunes 10.0 you may run into a dialog that erroneously reports something like “This script requires iTunes 6.0.2 or better”. This is not a bug in iTunes, but a problem with the way the script does the version check. (Long story short: the version number once was a number, but more modern versions of apps use a string. Thus “10.0″ is not necessarily greater than “9.2.1″ and the routine fails to accommodate this.) You can edit/comment out the version check routine yourself or wait until I get around to fixing the handful or so scripts that are affected. In that case, let me know if you see the error.

September 2 '10 - 5:44 am

iTunes 10 Now Available

Apple released iTunes 10 yesterday, available from the iTunes download page and Software Update (it was about 8 hours between Steve Jobs’ announcement and the release). iTunes 10 has a new look, an AirTunes reboot with AirPlay, and the new “Ping” social networking feature. As far as I can tell, current AppleScripts and apps from this site work as well as they always have on iTunes 10. I’ll have more compatibility information if necessary after I check around with my iTunes Buddies.

August 28 '10 - 10:32 am

Add Pages ePubs to iTunes Automatically for iBooks Sync

The latest update to Pages.app allows docs to be exported in the ePub format. ePub is one of the formats that can be read by the iBooks app. Now, in order for documents to get onto your iPhone/iPad you have to add them to iTunes. By hand? No! Automatically with a Folder Action! Below is a script which you should save to your /Library/Scripts/Folder Action Scripts folder. Attach the script as a folder action to a designated “ePub Export” folder, which you will create. Whenever you “Export…” a Pages doc to that “ePub Export” folder, it will automatically be added to iTunes’ Books library and eventually sync to your iPhone/iPad.

If your iTunes is set to “Copy files to iTunes Media folder when adding to library”, then you may want to delete the original from the “ePub Export” folder; just un-comment the (* *) section in the script by removing the (* and *) and saving the script.

on adding folder items to my_folder after receiving the_files
	repeat with i from 1 to number of items in the_files
		set this_file to (item i of the_files)
		tell application "Finder"
			if (get name extension of this_file) is not "epub" then return
		end tell
		tell application "iTunes"
			try
				add this_file

				(*
				-- if you have iTunes set to
				--"Copy files to iTunes Media folder when adding to library"
				-- then you might want to delete the original file...
				-- if so, remove comments from this block and
				-- use the UNIX commands below to delete the file

				do shell script ("rm -f " & quoted form of  POSIX path of (this_file as text))

				*)
			end try
		end tell
	end repeat
end adding folder items to


More info on Folder Actions for iTunes is located here.

August 12 '10 - 10:37 am

NEW: Search Amazon Book Covers v1.0

Here’s a pretty basic Search-Amazon-For-Art script. It grabs the name, artist, and genre tags from a single selected book-type track in iTunes and lets you choose which of those tags to use as keywords in a search for book cover artwork at Amazon Books. Search Amazon Book Covers currently pings the US Amazon site, but it can easily be mod’d to work with their other sites, or as the basis for a search of some other site.

July 25 '10 - 11:32 am

Re: Scripting Bug with iTunes 9.2.1?

Apple may be aware of the issue. This Discussions thread discusses the issue and RoyB suggests re-downloading and re-installing iTunes 9.2.1(5)—you may have 9.2.1(4)—as a solution. (Thanks Tom R.)

Update: I forgot to mention that Software Update will not report v9.2.1(5) as a newer version if you have 9.2.1(4). You must download iTunes from this page at Apple and install it from the disk image.

This column is printer-friendly.
Site contents © 2001 - 2010 Doug Adams and weblished by Doug Adams, dougscripts AT mac DOT com.
All rights reserved. Legal.
AppleScript, iTunes, and iPod are registered trademarks of Apple Inc.
Image 01 Image 01 Image 01 Image 01 Image 01 Image 02 Image 03 Image 03 Image 03 Image 03