dougscripts.com

Popular Now

Media Folder Files Not Added

downloaded 16m 43s ago

Media Folder Files Not Added v2.6

For Music/TV Displays files in the Media folder not in Music track library

List MIAs

downloaded 39m 40s ago

List MIAs v6.5

For Music/TV Display, delete, create text file listing info of dead tracks

Search-Replace Tag Text

downloaded 1h 16m 14s ago

Search-Replace Tag Text v7.4

For Music/TV Perform search-and-replace on text in your choice of tags

Save Album Art to Album Folder

downloaded 1h 46m 52s ago

Save Album Art to Album Folder v7.4

For Music Export artwork of selected tracks to parent or specified folder

Flush Apple Music Cache Files

downloaded 2h 7m 51s ago

Flush Apple Music Cache Files v1.0

For iTunes Delete files downloaded and cached by Apple Music

Reverse Artist Last, First

downloaded 2h 16m 55s ago

Reverse Artist Last, First v2.0

For Music Reverse Artist tag text from "Last, First" to "First Last"

Welcome!

Download hundreds (627 and counting) 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.

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 a Download/Installation FAQ.

Check back often or follow me on Twitter @dougscripts, my YouTube channel, or subscribe to my RSS blog feed and 30 Most Recent Scripts RSS feed to stay notified about new and updated scripts and info.

Latest:

RSS ROOLZ! SUBSCRIBE!

October 10 2025 - 2:15 pm

UPDATED: Media Folder Files Not Added v2.6

This application will list the file paths of the media files in your designated "Media" folder which are not associated with any tracks in the Music or TV app's track library. Additionally, a different parent folder can be user-selected and its contents will be compared to the current library. Includes options to Filter within results, Move a selection of found files to a user-chosen folder, Search for related tracks in Music app, Add (or drag-and-drop) a selection of found files to Music or TV, move them to the Trash and Export a text file listing the file paths.

Also see Super Remove Dead Tracks and List MIAs.

This app is free to try in Demo Mode with some features restricted. If you like it you can purchase a code for $2.99 which will unlock the inhibited "Add", "Trash" and other features. Launch the app and click "Register..." in the its File menu to make an in-app purchase .

Latest version:

  • Accommodations for macOS 26/Tahoe

More information for Media Folder Files Not Added v2.6 and download link is here.

October 10 2025 - 12:01 pm

UPDATED: CD-Text to CD Info v6.4

This applet will attempt to extract the CD-Text information from the selected audio CD in the Music app and apply it to the CD's disc and track tags.

Some commercial CDs and commercial CD burning software (including the Music app) can use CD-Text as a method of including text data on an audio CD. This data can include Artist (Performer), Album, Composer, Track Title, and Genre info. See the Read Me for more information.

Latest version:

  • Accommodations for macOS 26/Tahoe

More information for CD-Text to CD Info v6.4 and download link is here.

October 10 2025 - 11:03 am

UPDATED: This Tag That Tag v6.4

This applet will assist with swapping, copying, and appending data between two user-chosen tags in selected tracks or tracks in the selected playlist:

Swap - swap data between tags, ex: ARTIST<->COMPOSER
Copy - copy data from one to another tag, ex: ARTIST->COMPOSER ARTIST
Append - append data from one tag to the end of another, ex: ARTIST->COMPOSER - ARTIST
Prepend - append data from one tag to the beginning of another, ex: ARTIST->ARTIST - COMPOSER

The latter three actions also provide an option to delete the info from the first tag after the copy. Read Me explains all.

This app is free to try full-featured in Demo Mode. In Demo Mode it will only process 12 tracks per launch. If you like it you can purchase a code for $1.99 which will unlock the 12-track restriction. Launch the app and click "Register..." in its File menu to make an in-app purchase.

Latest version:

  • Accommodations for macOS 26/Tahoe

More information for This Tag That Tag v6.4 and download link is here.

October 9 2025 - 3:27 pm

Bug or Feature? Non-Persistent Permission to Read the Media Library

If you've been following along, you will have noticed how Apple has, over the years, gotten stingier with which and how certain "protected resources" on your Mac can be accessed by third parties. One of these resources is your Media library. In order to access information about your Media library, a third party app has to declare its intentions to the user. This is a typical dialog you will see in such a situation:

Conventionally, this will be displayed as you launch the script app for the first time. Then the user's "Allow" decision will be remembered every time you launch it thereafter.

This is not happening in macOS 26/Tahoe. Every time you launch such a script you will see this dialog.

Not every script requires access to the Media library so this doesn't happen with every script. But it does with enough of the popular ones.

I'm not sure if this is the intended behavior. I filed a bug report.

October 9 2025 - 3:07 pm

UPDATED: List MIAs v6.5

This applet checks your Music or TV library for missing and presumed dead tracks--those tracks that have become disassociated from their file and which are listed with a "!"--and can delete them from the app or create a text file listing these tracks by last known File Path, Title, Artist and Album, which you can view using TextEdit.

Also see Super Remove Dead Tracks and Media Folder Files Not Added.

Free to use in Demo Mode: While in Demo Mode, dead tracks will be displayed and can be exported as a list to a text file. Delete from Music/TV and other features will be disabled.

To purchase a registration code and remove these restrictions, download and launch the app. Click "Register..." in its File menu and follow the prompts to purchase a code for $2.99. When your payment is processed, you will be emailed a registration code that will unlock the Demo Mode restrictions.

Latest version:

  • Accommodations for macOS 26/Tahoe

More information for List MIAs v6.5 and download link is here.

October 9 2025 - 1:44 pm

UPDATED: Super Remove Dead Tracks v6.4

Scans the Music or TV app for tracks whose files are inaccessible or no longer available (so-called "dead" tracks). Outputs a tab-delimited text log listing the tracks by Artist, Name, Album and last known file location. The registered version will delete the tracks.

Also see List MIAs and Media Folder Files Not Added.

Latest version:

  • Accommodations for macOS 26/Tahoe
  • Removed "Stop" feature due to an OS regression; may return in future

More information for Super Remove Dead Tracks v6.4 and download link is here.

October 9 2025 - 12:52 pm

UPDATED: Search-Replace Tag Text v7.4

Performs a search-and-replace on the text in your choice of track tags in the Music or TV app (Title, Artist/Director, Album Artist, Album, Composer, Comments, Genre, Grouping, Show, Movement or Work) in the selected tracks or all the tracks in the selected Playlist. Features case sensitivity and whole word match options and "Test run" preview.

This app is free to try in Demo Mode. In Demo Mode only up to 5 tracks can be processed per launch. You can purchase a code for $1.99 which will remove the 5-track Demo Mode restriction. Launch the app and click "Register..." in the its File menu to make an in-app purchase.

Latest version:

  • Accommodations for macOS 26/Tahoe

More information for Search-Replace Tag Text v7.4 and download link is here.

June 12 2025 - 11:41 am

Apple Releases First Beta of macOS 26 Tahoe

Apple released the first developer beta of macOS 26 Tahoe on June 9 and the Public Beta program will be starting up soon as well. To date, I haven't spent much time with the first beta yet except to note that AppleScripts from this site should launch and work in it. But until the official Release Candidate is released sometime in the Fall, I can't assure that current scripts look and operate as intended.

Over the Summer, I'll be examining all the apps and AppleScripts and making updates where and when necessary. You probably know the drill by now.

Thanks for visiting and come back often!

June 30 2024 - 11:19 am

UPDATED: Increment Number Tags v4.3

This script will incrementally number your choice of the Track Number, Movement Number, Episode Number, Episode ID tags, and track Name prefix of the selected tracks. Additionally, a Track Count, Disc Number/Count and/or Movement Count can be applied to each track, Episode ID can be configured with additional text incorporating the number, and zero-padding up to five digits can be applied. (The selected tracks must be sorted by ascending Play Order for accurate results.)

Latest version:

  • Fixes a problem with setting starting number

More information for Increment Number Tags v4.3 and download link is here.

February 25 2024 - 1:50 pm

UPDATED: Save Album Art to Album Folder v7.4

This script will export the artwork of each of the selected tracks (or the tracks in a selected playlist) as an image file to the folder which contains each selected track's file--presumably each track's Album folder--or to a single user-selected folder. If multiple album tracks are selected, the script will make sure only one artwork file per Album is exported.

Latest version:

  • Maintenance and minor performance fixes
  • Fixes glitch in Settings

More information for Save Album Art to Album Folder v7.4 and download link is here.

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