dougscripts.com

Popular Now

Search-Replace Tag Text

downloaded 25m 49s ago

Search-Replace Tag Text v8.0

Perform search-and-replace on text in your choice of tags

Re-Locate Selected

downloaded 26m 20s ago

Re-Locate Selected v3.5

Re-locate files of selected tracks to new folder, preserve track meta-data

File Renamer

downloaded 26m 21s ago

File Renamer v5.4

Use tag data to formulate new file name for selected tracks' files

This Tag That Tag

downloaded 26m 22s ago

This Tag That Tag v7.0

Applet assists with swapping, copying, appending data between track tags

Super Remove Dead Tracks

downloaded 26m 22s ago

Super Remove Dead Tracks v7.0

Remove Music tracks disassociated from files

Insert Text into Tag

downloaded 26m 27s ago

Insert Text into Tag v1.5

Insert same text at same position in chosen tag of selected tracks

Welcome!

Download hundreds of AppleScripts for Apple's Media Apps that will help make managing your digital music and video collection easier and more fun!

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 macOS and many popular applications can be automated using AppleScript scripts. Scripts written for Apple's Music, TV and iTunes apps can manage files and track information, create playlists, interact with other applications, perform innovative tasks, and handle many kinds of chores with accuracy and precision which otherwise would be repetitive, laborious, and/or time-consuming.

And, perhaps most conveniently, AppleScripts can be launched from the Music app's Script menu and can even be assigned Keyboard Shortcuts.

Cool! Where Do I Start?

Start browsing the site by using the scripts ↓ Menu link above. AppleScripts are gathered into these general Categories:

Use the search box at the top of every page to try and find something specific. Or try the rand button.

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

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

Latest:

Subscribe to the RSS feed. Looks best in NetNewsWire.

November 3 2026 - 7:08 pm

NEW: Compare Track IDs v1.0

Normally, there’s no reason for Regular People to see a track’s persistent ID. That’s why you don’t see them anywhere in the Music app interface. But every track’s got one, like a hexadecimal belly button. And like a belly button, every one is unique and different. (I think belly buttons are all different. Aren’t they? Anyway, persistent IDs are different for each track and that’s my point.)

Now: The Double Entries Conundrum, in case you don’t know, is a situation in the Music app whereby a duplicate of an existing track entry has been errantly created which results in the file having two track entries. Not much of a good thing.

But you don’t want to confuse Double Entries with two track occurrences (as when a single track is added twice to a playlist). Or with two similar-yet-distinct files having separate entries (as you might have with studio and live/greatest hits versions of a song). If you could only see those persistent IDs! Boy, would that help!

The script Compare Track IDs will display the name, persistent ID, database ID, date added and file path of one or two selected tracks.

Compare Track IDs in action

In the screenshot, you can see that, for the most part, the two tracks are different but that their files are the same. There’s no mistaking that they are Double Entries. (I’d love to know what happened on that day in 2021 that caused Music to duplicate some of my Chicago tracks.)

So by comparing the IDs, the date added and the file path, you should be able to figure out what’s what and what ain’t.

Or maybe you just want to look at track persistent IDs. That’s cool, too.

Also see Scan For Double Entries.

Latest version:

  • Initial release

More information for Compare Track IDs v1.0 and download link is here.

November 3 2026 - 1:24 pm

NEW: Copy Move Remove v1.0

My current hyperactivity episode focused on Music’s “song list checkboxes” has not receded.

Copy Move Remove is a launch-and-leave-open utility that will copy, move or remove all checkmarked, all un-checkmarked or the selected tracks from the selected Music playlist on demand.

Copy Move Remove in action

Latest version:

  • Initial release

More information for Copy Move Remove v1.0 and download link is here.

November 3 2026 - 10:49 am

Am I Holding It Wrong?

Select some tracks in a Music playlist. For the sake of discussion, select 3. Now un-select them.

How many clicks did it take you and why all the clicking and what the heck happened to “Select None”?

October 30 2026 - 1:18 pm

NEW: Remove Un-Checkmarked v1.0

A track’s checkmark button property is named enabled in the Music app’s AppleScript lingo. I wish everybody knew that because “enabled button” is a better name for that widget than “songs list checkbox”, right? The track checkbox has been around since SoundJam MP, the audio player Napoleon had with him at the Battle of Wagram in July of 1809. Ostensibly used to indicate which tracks to rip from a CD or which should sync to something and all that kind of thing, the checkmark button is generally a handy way to demarcate these tracks from those tracks in a playlist. That makes it a sort of track selection apparatus.

I hadn’t really used track checkmarks for years and until recently kept them hidden via the Music app’s Settings… > General panel. But I got into a situation while pruning a playlist whereby I didn’t want to remove any tracks from it just yet; I wanted to see how the whole playlist looked before mentally committing to removing anything. So, I un-checked the tracks that I thought could be removed, sometimes changing my mind and checking them back on later, as one does, and sculpted the playlist like that.

Then I fired this script at it.

Remove Un-Checkmarked can either remove the un-checkmarked tracks from a playlist (re-checkmarking them back “on” after removal) or delete them entirely from the Music app’s Library with the standard option to keep their files or move them to the Trash.

It even has an image of a really large un-checkmarked checkbox right there to remind you what an un-checkmarked checkbox looks like in case you forget.

Remove Un-Checkmarked in action

Users of Scan For Double Entries may find Remove Un-Checkmarked useful for assisting with deleting tracks post scan.

Latest version:

  • Initial release

More information for Remove Un-Checkmarked v1.0 and download link is here.

October 29 2026 - 10:47 am

NEW: List Playlists v1.0

Once upon the iTunes time, I had a script that showed the playlists in which a selected track was contained. When the Music app time dawned, I never bothered updating it. It used the regularly-updated XML library file for track and playlist information but the Music app did away with that.

Finally got around to making it work with the Music app. Ongelooflijk!

List Playlists is a stay-open applet that will detect whenever a track is selected (or playing) in the Music app and display a list of the playlists that contain it (saving you the clicks to show Music’s transient “Show In Playlist” modal menu). If more than one track is selected, a list of the common playlists that contain them—if any—will be displayed.

List Playlists in action

Latest version:

  • Initial release

More information for List Playlists v1.0 and download link is here.

October 23 2026 - 7:26 am

OTD 2001, Apple Announced iTunes 2

iTunes 2 was pretty exciting. EQ settings, cross fading and MP3 CD burning were the new prestige features. And the iPod was announced the same day.

“iTunes 2 seamlessly integrates with iPod, allowing Mac users to quickly and easily download their entire iTunes 2 digital music collection of up to 1,000 songs into an iPod in under 10 minutes.” Woo! Stand back!

One thing not mentioned in the press release was that iTunes 2 would also have greatly expanded AppleScript support. The first version of iTunes only had play, next, previous, pause and stop commands and no accessible elements. But iTunes 2’s AppleScript support was even more robust than it had been in SoundJam, the jukebox app that iTunes was based on.

iTunes 2 was formally released a couple of weeks later, in time to use with that new iPod 1,000 songs thing.

October 14 2026 - 1:37 pm

NEW: Make New Playlist v1.0

A neat option for the Music app would be the ability to choose a default playlist view. Not exactly a new item on the Wish List. I’ve evolved a toleration of the default “as Playlist” view since I see it on the iPad so much. But I generally switch to the “as Songs” view while I’m building the playlist or working on the tracks in it and then switch back to “as Playlist” afterwards. Kinda like when you’re done working on your car, you close the hood. CHONK.

I’ve mentioned many times how I’ve assigned keyboard shortcuts to the “as Playlist” and “as Songs” menu items in the Music app’s View menu. That helps.

Lately I’ve been using a script that uses System Events accessibility scripting to hit “as Songs” and display the Column Browser after it creates a new playlist containing a batch of selected tracks. It can change the new playlist to any view. I’ve just set it to “as Songs” at my house.

Make New Playlist in action

I’m not a big fan of System Events scripting because it can be Kinda Klunky, requires serious permissions, and can need unpredictable future fixes if the app it targets updates its UI. But sometimes it’s the only way to bring truck home.

If you’re going to download and use Make New Playlist, you should know that on first launch it will ask you to give it accessibility permission in System Settings > Privacy & Security > Device Control and Data Access (formerly “Accessibility”). This is so the script can use System Events scripting to access the Music app’s View menu in order to pretend-click on its menu options. And to be able to pretend-click Command-B to show the Column Browser. I’ve put the step-by-step directions in the Read Me PDF. It’s pleading with you to read it.

I’ve given it the Shift-Command-N keyboard shortcut and it appears to over-ride same for the Music app’s “New Playlist with Selection” command. So you can imagine.

Latest version:

  • Initial release

More information for Make New Playlist v1.0 and download link is here.

October 14 2026 - 12:26 pm

UPDATED: Tracks Without Embedded Artwork v4.1

Yer Boy left some old code in a script and it probably made you sad. So I fixed it in this update to last week’s update.

This applet will examine the files of the tracks in the entire Music library or a selected Smart playlist for artwork metadata. Eligible audio tracks whose files are capable of embedding image data but do not contain artwork metadata will be copied to a new discrete Results playlist for further examination.

Tracks Without Embedded Artwork in action

Latest version:

  • Fixes error preventing registration. Apologies!
  • v4.0 (oct 7, 2026):
  • UI and layout updates for macOS 26 and later
  • Now allows scan of entire library or selected Smart playlist
  • Demo Mode completes scan but only reveals 10 tracks
  • Fixes issue with errant media library track entries

More information for Tracks Without Embedded Artwork v4.1 and download link is here.

October 10 2026 - 10:30 am

UPDATED: Coverscope v2.9

This Stay-Open applet will allow you to scroll and select tracks in the Music app to display both the selected track’s assigned track artwork and its local file’s metadata artwork (if any exists). The Track entry artwork well supports copy, paste and drags. Pasting or dragging image data immediately applies the image to the selected track’s artwork and attempts to embed it. Additional tools can Embed or Apply artwork between track and file.

Free to use in Demo Mode: While in Demo Mode, these functions will be enabled to use in any combination up to five times per launch:

  • Embed Track Artwork (to the file)
  • Apply Metadata Artwork (to the track entry)
  • Paste or Drag an image file to Apply and Embed
  • Copy Track Artwork to Clipboard
  • Save Track Artwork to File

Coverscope in action

Latest version:

  • UI and layout updates for macOS 26 and later
  • Maintenance

More information for Coverscope v2.9 and download link is here.

October 9 2026 - 1:23 pm

UPDATED: Show Me The Metadata v3.5

This script will display the audio metadata and the Spotlight metadata for the file of a selected track in the Music app or user-selected audio file, or a drag-and-dropped Music track or audio file. Includes additional features to display embedded artwork and activate the Finder’s Information Window for the file.

Show Me The Metadata in action

Latest version:

  • UI and layout updates for macOS 26 and later
  • Adds Reveal in Finder
  • Maintenance
  • Icon and docs update

More information for Show Me The Metadata v3.5 and download link is here.

Site contents © 2001 - 2026 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not be interrupting the one who is doing it.