Download hundreds (459 and counting) of AppleScripts for Apple's iTunes that will help make managing your digital music collection easier and more fun!

Popular Now

Track Down Purchases

downloaded 7m 59s ago

Track Down Purchases v3.3

Sort purchased tracks into discrete playlists by name or Apple ID

Super Remove Dead Tracks

downloaded 12m 2s ago

Super Remove Dead Tracks v4.4

Remove iTunes tracks disassociated from files

downloaded 13m 38s ago

Re-Embed Artwork v2.2

Exports and then re-imports selected tracks' artwork

Save Album Art to Album Folder

downloaded 16m 7s ago

Save Album Art to Album Folder v5.4

Export artwork of selected tracks to parent or specified folder

Batch Export Playlists

downloaded 16m 32s ago

Batch Export Playlists v2.0

Export selected playlists as individual XML or M3U files

PDF Adder

downloaded 17m 11s ago

PDF Adder v5.3

Assists with tagging and adding PDF files to iTunes

What's AppleScript?

AppleScript is a simple Macintosh-only programming language that can control and automate actions on your Mac. AppleScript is already available on your computer as part of the Mac OS and many popular applications can be automated using AppleScript scripts. Scripts written for iTunes can manage files and track information, create playlists, interact with other applications, perform innovative tasks, and handle many kinds of chores which otherwise would be repetitive, laborious, and/or 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 box at the top of every page to try and find something specific.

Not sure how to install AppleScripts? Here's a Download/Installation FAQ & Video.

Check back often or follow me on Twitter @dougscripts or on Facebook, or subscribe to my RSS blog feed and 30 Most Recent Scripts RSS feed to stay notified about new and updated scripts and info.


April 9 2016 - 10:29 am

UPDATED: M3Unify v1.4.4

M3Unify is a flexible file exporter and M3U playlist creator that will allow you to off-load copies of your iTunes songs to a user-chosen location—separate folder, external drive, USB thumb drive, SD card and so on—the way you and your audio player want.

As you’ll know from watching my AV presentation, I use M3Unify to stuff a USB thumb drive with music files to use in my car’s audio player. It sure beats racking a mini CD collection to the driver’s side sun visor. I still see people doing that. Retro.

This latest version of M3Unify now has an option to name sub-folders configured as “Artist – Album”; apparently, some audio players will only scan one folder deep such that files at the bottom of a folder hierarchy like Artist/Album/ will be ignored. Sad!

This is a free update for registered users. It’s free to try with a 15-track limitation and $5.00 to purchase. More information and the informative video is on this page.

April 6 2016 - 1:56 pm

Play Counts Bug

There seems to be a fairly recent bug affecting track play counts–or plays–when the played count property of an iTunes track is changed with AppleScript. If iCloud Music Library or iTunes Match is enabled, the value will revert to what it was before being changed by AppleScript. It seems as though either the new play count for a track doesn’t get synced to the cloud or that the original value in the cloud has over-written the new plays value. Or something like that.

Several scripts here (Multi-Item Edit, New Play Count, New Last Played Date, et al) that allow you to edit the play counts of your tracks are affected by this bug, which only occurs if you’re also using iCloud Music Library or iTunes Match. I am not sure if versions of iTunes prior to are affected or if, perhaps, the bug also occurs with a track’s skipped count (I wouldn’t be surprised).

I filed a bug report with Apple and it turns out it’s already an open issue, so Apple knows about it. Now we wait.

March 23 2016 - 11:43 am

No Script Joy for “Show composer in all views”

The new Get Info panel setting, “Show composer in all views” does not have AppleScript support, unfortunately. I suppose we can hope it might be added in the future. It can still be batch-set by selecting tracks and editing information for multiple items.

March 23 2016 - 8:11 am

UPDATED: Dupin v2.10.2

I’ve posted a minor maintenance update to Dupin, the iTunes duplicates manager. I had to fix a minor incompatibility issue with how OS X 10.11 displays a Quick Look window.

Did you know that Dupin even used Quick Look? You can select a track in Dupin’s track list, press Space Bar, and a Quick Look panel will display whereby the track can be played:

Quick Look in action with Dupin

Comes in handy when you need to audition the tracks without having to locate them in iTunes first.

Dupin ($15.00) has many other features that will help you manage (and perhaps eventually Trash) your iTunes duplicates, like flexible dupe filtering, Re-Playlisting, “dead” track removal, and more. And it’s compatible with iCloud Music Library tracks. This latest version (v2.10.2) is a free update for registered users.

March 21 2016 - 6:49 pm

iTunes 12.3.3 Released

Apple has released an update to iTunes that accommodates the just-announced iPhone SE and 9.7-inch iPad Pro. It’s available from the Mac App Store under the Updates tab. Kirk has a rundown of new (somewhat minor) features.

March 15 2016 - 7:03 am

Use Overcast and Join Together to Listen to Audiobooks

Marco Arment’s Overcast iOS podcast app has been updated to v2.5. I use Overcast exclusively for podcast listening. It’s fantastic. The latest version of Overcast has a great new feature: file uploads. Patrons of Overcast are allowed 2GB of cloud space in which to upload files up to 250MB each. This is a great way to get audiobooks into Overcast from iTunes whereby you can take advantage of Overcast’s playback effects, like smart speed and voice boost.

And a great way to prepare audio files for upload to the Overcast cloud is to use use my Join Together app to consolidate the files of an audiobook to just a single file (or a small batch of individual files) under 250MB. In fact, it’s likely you could get about eight hours of decent-sounding spoken word audio in a single audio file under that limit when it’s encoded at 64kbps.

First, you need to be a patron of Overcast. Which means you’ve made an in-app payment in the Overcast app and registered. I’m an annual patron at $11.99 per year, but there are three-month and six-month patronage plans available also. Only patrons will be able to upload files to the Overcast cloud.

Use Join Together to create a Music file from a batch of tracks in iTunes (I had trouble with one m4b audiobook file created with Join Together and I’m not sure what the issue was. If I manually changed the extension to m4a in the Finder there was no problem.) Join Together will display the approximate final file size as tracks are dragged to it or the bit rate settings are changed. You want to make sure to keep your final file under 250MB (as underlined in red, below).

Also, since this file is only going to be used with Overcast, rather than add the final file to iTunes, you may want to use Join Together’s Advanced Session Options (Option-Export) to save the final joined file to the Desktop. Once you upload it to Overcast, you can remove it from the Desktop.

When the appropriately-sized audio file has been exported from Join Together, go to the Overcast uploads webpage. Navigate to the file you created with Join Together and send it to the cloud.

Go to Overcast app. In Settings make sure “File uploads” is on. Refresh. Your uploaded file(s) should appear in “Uploads” at the top of the Podcasts section, where it will play like any podcast episode.

Just to be clear, I’m not affiliated with Overcast or Marco Arment. I just like listening to good stuff in a clever way on great iOS software.

March 14 2016 - 2:56 pm

UPDATED: Join Together v7.6

Join Together 7.6 will create and export a single AAC or ALAC audio file from the audio data of tracks dragged from iTunes or files dragged from the Finder, leaving the original source tracks and files intact.

This latest version will honor an iTunes track’s user-set Start and Stop Times (which are accessible in the track’s Get Info > Options panel), the presumption being that the abridged version of a track is how you prefer to listen to it. But this behavior can be over-ridden in the Advanced Session Options (Option-Export) so that the Start and Stop Times are ignored and the complete duration of a track will be incorporated into the final joined track.

I’ve also fixed a few minor bugs and done a little low-level maintenance.

The unregistered version of Join Together will operate in Demo Mode during which all of its features are available and unrestricted. However, in Demo Mode the volume-level of the exported file will be sharply reduced after a few minutes and through the duration of the file. A registration code for Join Together is $5.00. This is a free update for registered users.

February 24 2016 - 1:16 pm

UPDATED: Smarts v1.3.1

Smarts will save and store the criteria of an iTunes Smart Playlist — the smarts of a Smart Playlist — as a template so you can reload it into iTunes later.


This latest version fixes an issue with distinguishing between Smart and Genius playlists in modern versions of iTunes.

Smarts is a free download from the Mac App Store. More information is available on this page.

February 17 2016 - 7:24 am

Name New Playlist From Selection

(This a repost from October 25, 2011. The previous post reminded me of it.)

I use the iTunes File > New > Playlist from Selection command a lot to create temporary playlists. Actually, I use the Shift-Command-N shortcut more often than clicking the command in the File menu. But I’m irritated at all the dancing I have to do to name the new “untitled playlist”. It takes my attention away from what I was intending to do with the tracks. So, I rigged the script below to the keyboard shortcut Shift-Command-N—and, luckily, it works. Sometimes assigning a shortcut that iTunes is already using doesn’t override the original command. The script does exactly what “Playlist from Selection” does except now I can enter the name for the playlist before it’s created.

Here’s the script:

tell application id “”


set sel to selection

set theSource to container of view of front browser window

if sel is {} then error

set opt to (display dialog ¬

“Make new playlist from selected tracks named:” default answer ¬

“” with title “Name New Playlist From Selection” with icon 1)

set newName to (text returned of opt)

if newName is “” then error

on error


end try

set newPlaylist to (make new playlist at theSource with properties {name:newName})

repeat with t in sel


duplicate t to newPlaylist

end try

end repeat

reveal newPlaylist

end tell

I named it “Name New Playlist from Selection”, saved it to ~/Library/iTunes/Scripts/ and gave it the shortcut using these instructions.

February 10 2016 - 7:21 am

NEW: New Playlist from Selection to Folder

New Playlist from Selection to Folder will create a new playlist with the selected tracks in a chosen Playlist Folder—rather than at the top level where you’d otherwise have to locate it and drag it to a Playlist Folder.

Just select some tracks and then launch the script (you could assign the script a keyboard shortcut).

Enter a name to use for the new playlist and click “Continue…”. A second panel listing the current Playlist Folders in iTunes will appear:

Select a Playlist Folder from the list and click “OK”. The new playlist containing copies of the selected tracks will be created in the Playlist Folder.

More info and download is on this page.

Site contents © 2001 - 2016 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Legal.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.