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

Remove n Characters From Front or Back

Remove n Characters From Front or Back v5.0

Delete characters from the beginning or ending of selected tracks' name, artist, album, comments, composer, or show tags

Size of Artwork

Size of Artwork v1.1

Display the width x height of selected track's artwork

New Play Count v2.0

Set the Plays of selected tracks.

Drop to Make M4V Movies v1.0

Droplet converts movies to H.264 and adds to iTunes

Open iTunes Media Folder v2.0

Open the iTunes Media folder in the Finder

Multi-Item Edit

Multi-Item Edit v3.0

View/Edit tags of selected track(s) in single window

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.


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.

November 24 2014 - 11:26 am

UPDATED: Re-Apply Downsized Artwork v3.0

Re-Apply Downsized Artwork v3.0 will examine the first artwork of each selected iTunes track (or tracks in the selected playlist) and if greater than a user-set resolution (n x n pixels) will downscale the image to that resolution. Artwork already at the set resolution or smaller will not be affected.

This latest version has substantial UI and feature additions: cycle through each selected track; displays track and artwork information; preview the artwork at the selected resolution; pad the image to make square; can insert as track’s first artwork to preserve current artwork(s) instead of replacing the first artwork; apply settings to all selected tracks or just the current displayed track; view image at actual pixel dimensions or proportionally sized to the re-sized window; export the displayed image as a file.

Re-Apply Downsized Artwork is $1.99 and free to try full-featured for ten days. OS X 10.8 or later only. More information and download is here.

November 14 2014 - 8:42 pm

Son of Latest Batch of Updates

Like last week, I hadn’t gotten around to posting individual blurbs on all the updated stuff from this week (November 9-14). So, briefly:

Drop to Add and Give Info v3.0 – drop files onto this droplet and it will supply a Get Info-type interface to add basic tags to the tracks once they’re added to iTunes. Better Yosemite support.

PDF Adder v5.0 – applet/droplet and PDF Service enable you to supply some basic tags to PDFs added to iTunes, the latter is a PDF Service workflow accessible from any app’s Print Dialog. Yosemite support, minor tweaks.

Make PDF Booklet v3.0 – assists with creating lists of track data exported as a text-only PDF. Support for Yosemite.

This Tag That Tag v4.2 – copy, swap and append data between tags of selected tracks. Fixed a progress indicator that wouldn’t indicate progress. I hate when that happens.

Delete Selected Files v2.1 – removes selected tracks and can move their files to the Trash or delete them immediately. Fixes a problem when canceling and progress would not cancel.

Drop to Add and Make Playlists v3.0- drop folders of media files onto this droplet and it will add the files to iTunes and create playlists for the tracks based on the names of the folders. Adds better support for Yosemite.

All HD and SD to Playlists v2.0 – creates two playlists containing, respectively, all the SD video tracks and all the HD video tracks in the library. Mostly just a maintenance update since last update in 2009.

Make An EQ Preset Script v3.0 – creates a new AppleScript applet using data from the selected EQ Preset. When that applet is launched it will re-create the EQ Preset in any iTunes (on a Mac). Handy way to archive EQ Presets. This is a major maintenance update, added better options in the applet for renaming.

Subscribe to the 30 Most Recent Scripts RSS or my Twitter feed @dougscripts to stay updated on script releases.

November 14 2014 - 10:31 am

M3Unify v1.1.1

The latest version of M3Unify v1.1.1 fixes a few bugs working with protected files and a couple of other minor issues.

M3Unify is a flexible M3U playlist creator and file exporter that will allow you to load a USB thumb drive or SD card with copies of your iTunes songs the way you and your audio player want. It can archive M3U playlists and audio files to a folder, volume or portable media and includes options to create Artist/Album sub-folders, rename files, convert to AAC, and more.

November 9 2014 - 2:51 pm

UPDATED: PDF Adder v5.0

PDF Adder is a collection of two AppleScripts that each assist with adding PDF files to iTunes as “digital booklet” PDF tracks. Each provides an interface for easily supplying Author (artist), Album, Category (genre), Year, Rating and Description tag data which is then applied to the newly-added PDF track entry in iTunes:

  • Add as PDF to iTunes is a PDF Service workflow that, when installed, will be available in the PDF pop-up menu of the Print Dialog. It allows you to save the current document as a PDF file (from any application that uses the Print Dialog) and add it to iTunes. I describe here how I use it with Safari Reader.
  • PDF Adder is an applet/droplet that will let you choose or drag-and-drop an existing PDF file and add it to iTunes. It can be installed in iTunes’ Scripts folder for easy access from iTunes Script menu.

Anything you can print from the Print Dialog, you can make into a PDF. And any PDF can be added to iTunes.

The latest version of each script is compatible with Yosemite and has a few minor tweaks for better performance.

More information and download is here.

November 8 2014 - 2:42 pm

Latest Batch of Updates

So busy slapping ‘em together that I hadn’t posted I’d updated ‘em. Here’s the last few updated scripts (October 29 – November 8):

Set Video Kind of Selected v5.0 – change the video kind property of the selected tracks to your choice of “Home Video”, “Movie”, “Music Video” or “TV Show”. Additionally, “Show Name”, “Season Number”, and incremental “Episode Number” can also be set or cleared for each selected track.

Convert and Replace v2.0 – convert the selected tracks using an encoder chosen on-the-fly (the encoder’s current Preferences-set options will be in effect) and replace the originals throughout the playlists of your entire library with the newly converted versions. Additionally, you can opt to Trash/delete or keep the original files and tracks.

Trackographer v4.0 – stay-open applet will monitor iTunes and send tag and time-of-play information of each track that plays (including iTunes Radio and internet radio streams if they provide track info) to a text file. Preferences can be set to include or not include various basic tags and to create a plain text file or a tab-delimited text file which can be imported into a spreadsheet.

Multi-Item Edit v2.1 – mostly bug fixes; edit most track tags (and some additional options) in a single window which emulates the pre-iTunes 12 “multiple items” format; that is, a checkbox adjacent to each tag allows you to select which changes are to be applied to the selection’s tags.

Delete Selected Files v2.0 – remove each selected track from all playlists and Trash or immediately delete their corresponding files. Some iTunes delete commands will not move files from outside the “iTunes Media” folder to the Trash. This script worksaround that.

Find Truncated Tracks v2.0 – assists with segregating iTunes Match tracks that appear to get cut-off when played (due to a possible bug which Kirk describes here). Then these truncated tracks can be deleted and re-downloaded intact (by you, not the script).

Playlist Manager v2.0 – iTunes only allows one playlist to be selected at a time. This applet can perform common useful tasks on a multiple selection of playlists: rename (add text, remove text, search and replace text), duplicate, delete, export, merge.

Search Results to Playlist v2.0 – search a chosen category (Library, Music, Movies, etc) or the selected playlist for user-entered text by All, Song, Artist, Album, or Composer tag and copy the track results to a Search Results playlist, which will be created automatically if necessary. Can optionally re-create or append to the Search Results playlist on each run. Floats over iTunes while active for easy access.

October 31 2014 - 3:06 pm

Save Current Track’s Artwork

I don’t know why you’d want to do this on any kind of regular basis, but I thought it was kinda fun for a Friday afternoon. I wanted to see if I could save artwork from iTunes Radio tracks, but it works with whatever the current track is:

tell application “iTunes”


if player state is not stopped then

set alb to (get album of current track)

tell artwork 1 of current track

if format is JPEG picture then

set imgFormat to “.jpg”


set imgFormat to “.png”

end if

end tell

set rawData to (get raw data of artwork 1 of current track)



end if

on error

display dialog “Problem getting track info.” buttons {”OK”}


end try

end tell


set baseLoc to choose folder

on error


end try

set newPath to ((baseLoc as text) & alb & imgFormat) as text


tell me to set fileRef to (open for access newPath with write permission)

write rawData to fileRef starting at 0

tell me to close access fileRef

on error m number n

log n

log m


tell me to close access fileRef

end try

end try

Open that in Script Editor and “Save…” it as “Save Current Track’s Artwork” (or whatever) in your ~/Library/iTunes/Scripts/ folder. Whenever a track is playing, you can launch it to choose a folder in which to save the current track’s artwork. Great way to fill up your desktop with effluvia. (I’m kidding. But it would be good for that.)

Site contents © 2001 - 2014 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.