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

Popular Now

Increment Number Tags

downloaded 4m 49s ago

Increment Number Tags v2.3

Set choice of various number tags of selected tracks incrementally

Convert and Replace

downloaded 20m 0s ago

Convert and Replace v2.0

Convert selected tracks and replace them with converted versions

Size of Artwork

downloaded 27m 11s ago

Size of Artwork v1.1

Display the width x height of selected track's artwork

Delete Selected Files

downloaded 35m 34s ago

Delete Selected Files v2.1

Remove selected tracks and Trash or delete their files

Scan For Double Entries

downloaded 46m 51s ago

Scan For Double Entries v2.0

Locates pairs of track entries pointing to the same file

downloaded 48m 31s ago

Add or Subtract Skip Count v2.0

Add or subtract a user-entered number from each selected track's Skip Count

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 the Download/Installation FAQ & Video.

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


January 10 2015 - 1:15 pm

UPDATED: Batch Export Playlists v1.4

iTunes can only export a single playlist at a time using the File > Library > Export Playlist… command. My mouse finger’s inter-phalangeals are achy just thinking about exporting more than a few that way. Batch Export Playlists v1.4 will export each selected plain, Smart, and Genius playlist as individual XML or M3U files to a user selected directory. Such files can be re-imported into iTunes again later or into other devices or apps.

As a bonus, Smart playlist XML files can be exported as two files, with one containing just the Smart criteria.

This latest version adds a heirarchical view for Playlist Folders which more closely emulates iTunes’ playlist view and has some minor tweaks for better compatibility with OS X 10.10 and iTunes 12.

More information and download is here.

January 9 2015 - 1:14 pm

NEW: Duplicate Playlist Folder as Playlist

iTunes turns fourteen years old today which makes it about a month older than this website. And I think I’ve only just noticed that Playlist Folders don’t have a duplicate command. (Technically, Playlist Folders were introduced in September 2007 with version 5.0. I’m still surprised I hadn’t noticed. I probably just forgot. Yeah. That’s it.) Recently, I wanted to get rid of a bunch of Playlist Folders and dump their tracks into plain playlists and I figured a duplicate command might do that.

I suppose it’s easy enough to just select all the tracks in a selected Playlist Folder and use “Playlist From Selection” (Shift-Command-N) but I also wanted to delete the original Playlist Folder in the same swoop. And doing all that that turns into a mittful of keypresses and mouse-arounds. Which makes my scripty-sense tingle.

Duplicate Playlist Folder as Playlist will copy all the tracks in a selected Playlist Folder to a new “plain” playlist, essentially duplicating the tracks as viewed when the Playlist Folder is selected.

Optionally, it will delete the selected source Playlist Folder and its contents (of course, the tracks remain in your library, but any playlists and sub-Playlist Folders it contains will be deleted).

Codesigned, free, and nagless, more info and download is here.

December 31 2014 - 12:41 pm

NEW: Remove Leading-Trailing Spaces

Remove Leading-Trailing Spaces will remove any number of extra space characters at the beginning and ending of chosen tags (Name, Artist, Album Artist, Album, Composer, Genre, Grouping and Show) in the selected tracks.

Selected tags are remembered between launches.

iTunes 12 won’t let you add leading or trailing spaces to a text tag in the Get Info panel so these sorts of anomalies are likely to be the result of tagging by another means (by editing a tag directly in the iTunes browser window, for example, or by using another application).

December 30 2014 - 11:10 am

Blanking the Genre Tag in iTunes 12

Kirk has found a bug in iTunes 12 whereby selecting a batch of tracks and deleting their Genre tag via the Get Info panel inserts 8 spaces instead of empty text into each track’s Genre tag. This creates a Blank Genre that is actually displayed and selectable in Genre lists.

This AppleScript will correctly delete the Genre tag of each track in a selection:

tell application “iTunes”

set sel to selection

repeat with thisTrack in sel

tell thisTrack to set its genre to “”

end repeat

end tell

Also, any number of other scripts that can edit the Genre tag, like Multi-Item Edit, will get the job done.

December 29 2014 - 4:48 pm

MacVoices Podcast

Chuck Joiner invited me to join him on his MacVoices podcast. We talk about iTunes and AppleScript (of course) and obsessive-compulsive music organization, among other topics.

December 23 2014 - 7:40 am

Dupin v2.8.4 Released

Over the weekend, I released a version of Dupin that was basically a simple maintenance release. However, it was then brought to my attention that a bug had been in existence since v2.8.2 which errantly moved files to the Trash when using Dupin to remove tracks from a playlist. This isn’t an often-used feature—most users just want to delete the tracks and Trash the files from the entire library—but you can imagine the problem this would cause when the last thing you expected while just removing tracks from a playlist is to find that the files had been Trashed as well.

I have fixed that issue in version v2.8.4 of Dupin.

December 12 2014 - 7:03 am

UPDATED: Sundry Info to Comments v4.0

iTunes knows some stuff about your tracks but won’t let you see it other than via the Get Info panel because there are no columns in the browser window to accommodate it. We can fix that.

Sundry Info To Comments v4.0 can copy your single choice of filename, file path (location), file’s parent folder path, file creation date (YYYY-MM-DD HH:MM:SS), current playlist, volume adjustment, start time or stop time (HH:MM.SS), artwork size (WxH), purchaser name or purchaser account ID to choice of Category, Comments, Description or Episode ID tag of each selected track. By putting data in one of these available tags it can be visible and sortable or used with Smart Playlist criteria.

Setting up to copy the Apple ID to the Episode ID tag of the track selection.

This latest version adds the track’s start time, stop time and artwork size as info to apply; adds the Episode ID tag as a potential target tag; adds user-enterable separator-text field when appending to extant tag text; now stays active and frontmost until Quit; has minor compatibility adjustments for OS X 10.10.

Sundry Info To Comments is for OS X 10.8 and later and is free to use full-featured for ten day, $1.99 thereafter. More info and download is here.

December 1 2014 - 4:25 pm

NEW: Size of Artwork

I’ve been on a roll lately with the Managing Artwork scripts, eh?

The latest is Size of Artwork, which simply displays the size of the artwork of a selectd track:

For OS X 10.9 or later. This script is way more convenient to use when you assign it a keyboard shortcut.

December 1 2014 - 8:30 am

UPDATED: Multi-Item Edit v3.0

Multi-Item Edit v3.0 will display the selected track(s)’s tags in a single window for viewing or editing. When working with two or more tracks, the common tags of the selected tracks are initially displayed; when a single track is selected then it displays all tags for that track.

This latest version, first and foremost, will recognize a single selected track. And because it now also stays active and floating above iTunes until quit (no longer quitting after applying changes), you can cursor through tracks in a playlist to view or edit them individually.

I also added auto-complete to the Genre field, added Close and Miniaturize control buttons to the window, improved accessibility tabbing between text and option fields, improved the UI logic between Plays/Skips and Last Played/Last Skipped fields, and made other minor tweaks.

Multi-Item Edit v3.0 is a free update for registered users, free to try full-featured for ten days, $1.99 to purchase. OS X 10.8 or later.

November 26 2014 - 12:11 pm

NEW: Tracks Without Embedded Artwork

MP3, AAC and ALAC audio files have the capability to store artwork as image data as metadata internally. In this way, artwork can “travel” with the file. But it’s not always easy to tell if an audio file actually contains this metadata. For example, even though a track entry may have assigned artwork (which you can see in iTunes), its corresponding file may not include that artwork as metadata.

Tracks Without Embedded Artwork will examine the files of the selected iTunes tracks (or tracks in the selected playlist) for artwork metadata. Eligible audio tracks whose files do not contain artwork metadata will be copied to a new discrete playlist.

Once these tracks have been corraled, you can use other applets to embed their artwork to their files.

Tracks Without Embedded Artwork is free to try full-featured for ten days, $1.99 to purchase. More information and download is here.

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