Popular Now

Search-Replace Tag Text

downloaded 7m 57s ago

Search-Replace Tag Text v7.1

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

Scan For Double Entries

downloaded 13m 12s ago

Scan For Double Entries v4.1

For Music Locates sets of track entries pointing to the same file

Batch Export Playlists

downloaded 44m 32s ago

Batch Export Playlists v2.4

For iTunes Export selected playlists as individual XML or M3U files

Playlist Manager

downloaded 57m 31s ago

Playlist Manager v4.3

For Music Perform tasks on a batch of playlists; rename, delete, duplicate, merge, more

downloaded 1h 0m 58s ago

Move Playlists to Folder v2.3

For iTunes Move selected playlists to a new or existing folder

File Renamer

downloaded 2h 41m 49s ago

File Renamer v5.0

For Music/TV Use tag data to formulate new file name for selected tracks' files


Download hundreds (616 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.



January 24 2022 - 8:22 pm

UPDATED: Playlist Manager v4.3

The Music app only allows one playlist to be selected at a time. This applet can perform common useful tasks on a multiple selection of playlists: playlist title renaming (add text, remove text, search and replace text) and duplicate, delete, export, move to Playlist Folder and merge playlists.

Latest version:

  • Officially compiled as Universal
  • Commensurate improvements for M1 Macs
  • Fixes issue with "Duplicate" tool
  • Minor performance and UI enhancements

More information for Playlist Manager v4.3 and download link is here.

January 24 2022 - 3:37 pm

UPDATED: Albums Assemble v2.1

This applet will discern the Album tags of the selected tracks and then copy all of the available tracks of each of those Albums to the current playlist, other existing playlist or a new playlist.

Latest version:

  • Fixes issue whereby email panel fails

More information for Albums Assemble v2.1 and download link is here.

January 18 2022 - 3:04 pm

UPDATED: Sundry Info To Comments v6.2

Copy your single choice of filename, file path (location), file's parent folder path, file creation date (YYYY-MM-DD HH:MM:SS), current playlist, volume adjustment, start/stop time (HH:MM.SS), rating stars as text, artwork size (WxH), purchaser name, purchaser account ID or encoder (if accessible) to choice of Category, Comments or Description tag of each selected track. By putting data in one of these available tags it can be visible and sortable or used with Smart Playlist criteria.

I've kept the word "Comments" in the title of this script for legacy purposes, even though modern versions of it can write to other tags.

Latest version:

  • Adds video information as an option (SD or HD and WxH dimensions)
  • v6.1 (December 13, 2021):
  • Officially compiled as Universal
  • Commensurate improvements for M1 Macs

More information for Sundry Info To Comments v6.2 and download link is here.

January 17 2022 - 8:23 pm

NEW: Slice Up A Playlist v1.0

This script can create one or more new, smaller playlists from sub-divided batches of tracks in the selected playlist whereby each selected track will be interpreted as the last track delineator for each new playlist. A title for each new playlist can be user-entered, and resulting playlists can be moved collectively to a new discrete Playlist Folder.

This is a simplified example for illustration purposes. The script interprets each selected track in the selected playlist in the Music app as the last track of a new playlist. The script is showing the delineated playlists and their track contents before actually creating any of them, initiated by clicking the "Make" button when one or more are selected.

I've used it to slice up TV seasons, large music compilations and Smart playlists into manageable playlists.

Also see Divvy Up A Playlist and Merge-Delete Playlists.

Latest version:

  • Initial release

More information for Slice Up A Playlist v1.0 and download link is here.

January 13 2022 - 6:39 pm

UPDATED: Flush Apple Music Cache Files v2.1

Apple Music stores the audio files it plays in ~/Library/Caches/ This script will simply delete that folder.

The files in this folder are specially protected audio files that are downloaded and cached when you play a track from Apple Music on your Mac. They can't be user-played and are only useful to Apple Music, ostensibly so they needn't be re-downloaded if they are played again. (This cache folder doesn't pertain to Radio music. Or to Apple Music you've added to your library for offline listening, the files of which are stored in your "Media" folder.)

Latest version:

  • Minor UI and performance improvements

More information for Flush Apple Music Cache Files v2.1 and download link is here.

January 12 2022 - 9:02 pm

UPDATED: Artwork as Album Folder Icon v3.1

This script can be used two ways:

When run as an Applet, it will use the assigned artwork from the selected tracks as the icon for the folder containing each track's corresponding file in the Finder--presumably, this is the file's "Album" folder.

When launched as a Droplet--by dragging one or more folders to its icon--it will examine every folder (at all depths) for the first audio file in any folder that contains image metadata and use that image as the icon for that folder.

Latest version:

  • Officially compiled as Universal
  • Commensurate improvements for M1 Macs
  • UI and performance enhancements

More information for Artwork as Album Folder Icon v3.1 and download link is here.

January 8 2022 - 6:36 pm

UPDATED: Rate Me! Rate Me! v6.5

This stay-open applet watches your playing tracks and when one begins playing displays a notification-sized panel whereby a Rating, Love and/or Dislike for the track can be entered. Features options to display only unrated playing tracks and timer preferences for how soon and how long the panel is displayed.

While you could easily rate the current track from the Music app's icon in the Dock, this script interrupts you and compels you to do so.

Latest version:

  • Compiled as Universal
  • Fixed issue causing laggy timing on some systems
  • UI and performance enhancements

More information for Rate Me! Rate Me! v6.5 and download link is here.

January 8 2022 - 3:57 pm

UPDATED: Divvy Up A Playlist v3.0

This script will copy the tracks of a selected user-created playlist to a series of new, smaller playlists each set to a maximum time length or maximum track length and each named with a user-supplied base name and number suffix incremented sequentially. Additionally, the new playlists can all be moved to a new Playlist Folder. Tracks can be distributed in Playlist Order, Current Sorted Order or Randomized.

Latest version:

  • Compiled as Universal
  • Adds "maximum tracks" option
  • UI and performance enhancements

More information for Divvy Up A Playlist v3.0 and download link is here.

January 4 2022 - 7:16 pm

NEW: Albums Amiss v1.0

This script uses track information to calculate whether a particular batch of tracks with the same Album title represent an incomplete or over-complete album, with either too few or too many requisite album tracks. Such batches will be copied to a discrete results playlist where they can be examined. The entire Music library or an individially selected Smart playlist can be scanned. (To be clear: the script does not check some kind of online database; it uses the extant local track entry information. Thus, tag accuracy is essential.)

More information for Albums Amiss v1.0 and download link is here.

January 1 2022 - 3:17 pm

UPDATED: Search Wikipedia v3.2

Performs a "Go" search of Wikipedia (like Google's "I'm Feeling Lucky") in your default browser using the Song Title, Album, Artist, or Composer tag of the single selected or currently playing Music track. OR if a radio stream is currently playing and the provider has formatted the stream title correctly, such that Artist - Song Title is displayed, the script will do a Wikipedia search for the Artist name.

Latest version:

  • Maintenance update
  • Accommodations for macOS 12 Monterey

More information for Search Wikipedia v3.2 and download link is here.

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