Download hundreds (469 and counting) of AppleScripts for Apple's iTunes that will help make managing your digital music collection easier and more fun!
downloaded 40s ago
Set choice of various number tags of selected tracks incrementally
downloaded 26m 7s ago
Batch-change the Album Rating for the albums of selected tracks
downloaded 41m 23s ago
Display, create text file listing info of dead tracks
downloaded 42m 31s ago
Locates pairs of track entries pointing to the same file
downloaded 50m 0s ago
Enter text for the selected tracks' Long Description tag
downloaded 50m 0s ago
Ensure a volume is mounted at startup and then launch iTunes
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.
When Apple released macOS High Sierra 10.13 beta 3 to developers on July 10 a download for iTunes 12.7 (build 184.108.40.206) was also made available. By July 17, when I installed the Beta for the first time on another machine, iTunes 12.7 was no longer available for download.
There were reports on the Developer Forum about devices not being recognized so perhaps this is part of the reason for pulling it.
Apple has released iTunes version 12.6.2 (build 220.127.116.11) today along with macOS Sierra 10.12.6. Not much specific on changes in iTunes other than the usual performance enhancements.
Its been a few weeks now that the betas of Apple’s newest operating system, High Sierra/macOS 10.13, have been in the wild. And as I’ve been warning every Summer for a few years now: Unless the documentation or description of an application or script from this site specifically states that it is compatible with High Sierra, it most likely isn’t.
That doesn’t mean that apps and scripts won’t work at all. It just means to watch out because they might not work as expected.
And if you’re part of the Beta program and you run into an issue with an app or script you use regularly, please be sure to let me know.
So I guess artwork in iTunes drives some people crazy.
I have to admit I really don’t give a poop about artwork most of the time. But I get that many people do. One thing that many of my OCD-About-Artwork friends insist upon is that a track’s album artwork also be contained in that track’s file’s metadata; that the correct artwork is “embedded”.
Coverscope is an applet that will show both the assigned iTunes track artwork and the local file’s metadata artwork (if any exists) for the selected track.
Scrolling through tracks may turn up something like this, where the track entry in iTunes has artwork but its associated file does not have image data in its metadata:
Here’s a track where both the iTunes artwork exists and its file’s metadata contains image data:
There are features to Embed the track artwork to the file’s metadata, Apply the metadata image data to the track, drag an image file to Apply and Embed, Copy Track Artwork to Clipboard and Save Track Artwork as File.
Coverscope is free to use in Demo Mode, during which the above features can be used in any combination up to five times per launch. An in-app purchase of a registration code for $1.99 will remove the restriction so it can be used smoothly without re-launching.
More information and download is available on this page.
A tweet is worth…well, I guess only 140 characters. But a picture of a tweet should be worth more, right?
Anyway, this tweet from a Correspondent reminded me about something I’ve been aiming to do for a while and that’s find the folders in the iTunes Media folder that 1) are empty and that iTunes wouldn’t or couldn’t delete and 2) find the folders that are virtually empty except for any files that aren’t compatible with iTunes.
Typically, if you allow iTunes to manage the iTunes Media folder, iTunes will remove “Artist” and “Album” folders when it happens that they become empty by virtue of deleting tracks and their files in the app. But, if you manage the iTunes Media folder yourself (or some other folder/s that store your media files) and delete tracks and files, I’m not so sure iTunes will delete the empties. Or, if, like the author of the tweet, you’ve placed files alongside your media that iTunes doesn’t recognize—set lists or liner notes as text files, album art as “folder.jpg” or “cover.jpg” files, and so on), then iTunes won’t delete these folders either. My guess is that if you’ve Trashed the media files, you probably don’t need the associated bric-a-brac anymore and these folders could be disposed of.
Short of going through the entire iTunes Media folder using your fingers and eyeballs, Find Empty iTunes Media Folders will quickly traverse the iTunes Media folder looking for empty folders and folders that only contain files that iTunes doesn’t recognize.
I wish I had taken a screenshot of the folders it found before I really started testing the delete feature. I originally had about thirty folders either empty or containing potential jetsam.
Find Empty iTunes Media Folders can be downloaded and used in Demo Mode for free. In Demo Mode, several features will be disabled, which include:
- Show Finder Information Window
- Reveal in Finder
- Send to Trash
- Select all Empty/non-Empty
- Only Scan for Empty Folders
- Scan other user-selected folder
If you like and use the app, you can purchase a registration code for $1.99 that will remove the Demo Mode restrictions and enable the features listed above. You can get more information and download it from this page.
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.