dougscripts.com

Popular Now

Media Folder Files Not Added

downloaded 12m 43s ago

Media Folder Files Not Added v3.0

Displays files in the Media folder not in Music track library

Make New Playlist

downloaded 1h 33m 23s ago

Make New Playlist v1.0

Make new playlist with selection, choose View

List MIAs

downloaded 1h 57m 22s ago

List MIAs v7.2

Display, delete, create text file listing info of dead tracks

Super Remove Dead Tracks

downloaded 2h 5m 58s ago

Super Remove Dead Tracks v7.0

Remove Music tracks disassociated from files

Set Video Kind of Selected

downloaded 2h 43m 56s ago

Set Video Kind of Selected v6.4

Change video kind and video related tags of selected video tracks

Who Da Album Artist

downloaded 3h 35m 33s ago

Who Da Album Artist v1.1

Scans albums for missing or inconsistent album artist entries

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 18 2026 - 4:22 pm

UPDATED: Re-Locate Selected v3.7

This applet will re-locate the files of the selected tracks from their current location to a single user-chosen folder. The Music app will be updated with each track’s new location and all of each track’s meta-data will be preserved. Optionally leave a copy of each file in its original location (albeit disassociated from any Music app track entries).

Re-Locate Selected in action

Latest version:

  • Fixes bug introduced in v3.6 that caused the applet to stall at launch
  • v3.6 (nov 5, 2026):
  • UI and layout adjustments for macOS 27

More information for Re-Locate Selected v3.7 and download link is here.

November 18 2026 - 11:51 am

UPDATED: Edit Category Tag v2.0

The Category tag is a holdover from when iTunes managed podcasts. In the Music app, it is still supported but is only visible and accessible as a column in the “Songs” section of the Library or when a playlist is in “as Songs” View. The Category tag is also supported in Smart playlist rules. This simple script will enable you to apply text to the Category tag of one or more selected tracks. Works great with a keyboard shortcut.

Also see Multi-Item Edit and Sundry Info To Comments, both of which offer Category tag support.

Edit Category Tag in action

Latest version:

  • Rebuilt as an alert-style dialog

More information for Edit Category Tag v2.0 and download link is here.

November 16 2026 - 3:46 pm

UPDATED: Convert and Replace v5.0

This applet will convert the files of the selected tracks using an encoder chosen on-the-fly (each encoder’s current Preferences-set options will be in effect) and replace each tracks’ file with the converted version. The original pre-conversion file will be deleted.

Not for use with Sync Library or downloaded Apple Music files (“movpkg” files); files in the cloud and other devices cannot be converted.

Convert and Replace in action

Latest version:

  • UI, layout and code updates for macOS 26 and later
  • Fixes issue re-setting default encoder
  • Fixes issue that triggered Music’s delete file alert
  • Icon and docs update

More information for Convert and Replace v5.0 and download link is here.

November 9 2026 - 12:39 pm

UPDATED: Who Da Album Artist v1.1

This applet will scan your Music library and if it finds any album whose tracks’ Album Artist tags are missing or inconsistent (amounting to more than one per album, for example), will give you the opportunity to enter the appropriate Album Artist and Sort Album Artist tags.

Who Da Album Artist in action

Latest version:

  • UI and layout adjustments
  • Shows album’s track count
  • Multiple track artists will be listed in a scrollable list
  • Minor maintenance

More information for Who Da Album Artist v1.1 and download link is here.

November 5 2026 - 9:40 am

UPDATED: Show Me the Track Info v1.2

This launch-and-leave-open applet will continuously display track info from the playing or selected track in a floating window which can be configured to show the information in a user-preferred order. Eight sections within the window can be drag-arranged into their order of importance. The window can then be re-sized to display only as much of the information as is necessary. Handy for quickly surveying tracks without having to click-click-click for the Music app’s “Info Window”.

Show Me the Track Info in action

The blue brackets are only meant to illustratively demarcate the draggable sections. They do not appear in the actual UI of the script.

Latest version:

  • Can toggle section guides visible/hidden
  • Fixed text field resizing quirkiness
  • Minor UI fixes and adjustments

More information for Show Me the Track Info v1.2 and download link is here.

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.

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.