Download hundreds (467 and counting) of AppleScripts for Apple's iTunes that will help make managing your digital music collection easier and more fun!
downloaded 25s ago
Display, create text file listing info of dead tracks
downloaded 46s ago
Check scripts downloaded to your computer from dougscripts.com for latest version
downloaded 2m 2s ago
Locates pairs of track entries pointing to the same file
downloaded 3m 31s ago
Detects if a track's file's metadata contain image information
downloaded 4m 22s ago
Display and export playlists' name, size, time, track count, love/dislike for selected source
downloaded 6m 59s ago
Convert selected tracks and replace them with converted versions
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:
- Managing Tracks
- Managing Track Info
- Managing Artwork
- Managing Playlists
- Controlling iTunes
- Exporting Info
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.
Merge-Delete Playlists will allow you to merge the track contents of two or more playlists to a new or existing playlist or delete any number of playlists at once, including Smart, Genius, and Playlist Folder playlists. The merge feature will prevent the same tracks that may appear in different source playlists from being duplicated and has an option to delete original playlists. The delete feature only deletes playlists; tracks, of course, remain in the library.
This latest version brings back Apple Music playlists detection; the last version removed this ability because I hadn’t worked out all the details on how to handle them properly. They will appear with their names italicized at the top of the list in the window. It also fixes a bug that prevented selecting empty Playlist Folders.
Is Artwork Embedded will examine the single selected track’s audio file for image information in its metadata. If “embedded artwork” is found, the script will display something like this (where the image is the actual information retrieved from the metadata):
And if it can’t detect any artwork metadata:
iTunes doesn’t always transfer assigned track artwork to a file’s metadata, although most purchased tracks and downloads will have it. Also, just because an audio file’s Finder icon displays album artwork doesn’t mean that that artwork is part of the file’s metadata:
There may also be cases whereby some odd file has embedded artwork that is undetectable by the script (I suppose). But, generally: the script will always be right if it finds artwork metadata (because it displays it), but if it doesn’t find artwork it could be wrong.
Kirk and I go deep on playlists in iTunes in this week’s episode of The Next Track podcast. Real deep.
This episode is sponsored by Audio Hijack from Rogue Amoeba. If you can hear it on your Mac, you can record it with Audio Hijack. Download a free trial of Audio Hijack and be sure to check out a special offer for The Next Track listeners in this week’s episode.
I have just updated Delete Empty Playlists to v3.0. The previous version would simply delete any empty playlists it found. But I frequently found that I wanted to keep a few, especially if they were Smart playlists with criteria that would just be a pain to re-create.
This latest version can, certainly, delete all the empty playlists it finds. But it can also delete just the ones that are selected in the list. Additionally, specific playlists can be isolated by filtering for specific text in their names.
Apple released iTunes 18.104.22.168 just about a week ago. Now build version 22.214.171.124 is available from the App Store app’s Updates pane.
I believe this is the third time a release has been updated with a minor build shortly after its initial release.
It is possible that a recent change in the operating system may affect the ability to make an in-app donation in several scripts. These will be scripts that have the “nag” screens; when quitting, you may be unable to access PayPal when clicking the “I’ll Donate” button. Instead, the script will simply quit.
I am working on updates. Thanks for your patience.
Convert and Replace v2.4 will convert the files of the selected tracks using an iTunes encoder chosen on-the-fly (each encoder’s current Preferences-set options will be in effect) and replace the original tracks 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.
This latest version will stay running and not quit after conversion (registered version), monitors changes to the selection of tracks and removes the ability to select a playlist of tracks.
Interestingly, a Correspondent inquired if the script could be modified to accommodate two conversions. Here’s why: he wanted to convert 24 bit depth/48 kHz audio files (downloaded from Bandcamp) to Apple Lossless. But Apple Lossless conversion retains the original bit depth and sample rate, defeating the purpose (to some extent) of converting to a smaller file format. So he uses the script to convert these files to 16 bit/44.1 kHz AIFF files first and then again to convert them to ALAC.
Performing two conversions back-to-back automatically with different encoders would be a bit of a stretch for the script. So, as a compromise, I have let it stay open after conversion (at least for registered users) so that the original set of tracks remains the Source if a second conversion of them is required.
A couple of Correspondents have reported that fresh installations of Sierra do not have a “iTunes” folder in the User Library folder (~/Library/iTunes/). Traditionally, this folder contains the “iTunes Plug-Ins” folder and the “Scripts” folder (see my Download FAQ page for more details). Additionally, some third-party apps may use this folder for caching their own iTunes-related files. However, the “Scripts” folder is not created automatically and needs to be created by the user; and I believe Apple has lately inhibited the use of third-party visualizers such that the “iTunes Plug-Ins” folder may no longer be necessary. Perhaps, therefore, the ~/Library/iTunes/ folder is not created automatically anymore either.
To repeat: this seems to affect clean installs of the latest Sierra and iTunes 12.6 and later. If you already have these folders configured on your machine they will not disappear when you upgrade the operating system—at least, that’s been my experience.
iTunes still looks for AppleScript files in this location to make them available in its Script menu, so if your system isn’t configured with the ~/Library/iTunes/ folder you will have to create the intermediate “iTunes” folder there and then the “Scripts” folder within it.
AppleScripts can also be installed in the /Library/iTunes/Scripts/ folder—that’s the [startup disk]/Library/ folder and putting AppleScripts here makes them available to all Users. Again, the “Scripts” folder may have to be created by the user.
AppleScripts will appear in the system-wide Script menu in the Menu Bar when they are installed in ~/Library/Scripts/Applications/iTunes/ for the single User or /Library/Scripts/Applications/iTunes/ for all Users.
Apple has released iTunes 12.6.1 with “minor app and performance improvements”. Updates for each operating system were also released today. More as it develops.
We observe our first anniversary with a look back at some of our most interesting and popular episodes.