dougscripts.com

Popular Now

downloaded 25m 13s ago

Re-Embed Artwork v3.4

For Music Exports and then re-imports selected tracks' artwork

Save Album Art to Album Folder

downloaded 2h 54m 35s ago

Save Album Art to Album Folder v7.4

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

Delete Selected Files

downloaded 5h 12m 4s ago

Delete Selected Files v2.1

For iTunes Remove selected tracks and Trash or delete their files

List MIAs

downloaded 8h 10m 54s ago

List MIAs v6.4

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

downloaded 9h 8m 49s ago

New Play Count v5.0

For Music Set the Plays of selected tracks

Super Remove Dead Tracks

downloaded 9h 15m 44s ago

Super Remove Dead Tracks v4.10

For iTunes Remove iTunes tracks disassociated from files

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!

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.

February 25 2024 - 1:46 pm

UPDATED: Save Album Art as folder.jpg v5.3

This script will export the artwork of the selected tracks or tracks in the selected playlist as a JPEG image file named folder.jpg to the folder which contains each selected track's file--presumably the track's Album folder. Many third-party music players and systems may look for a "folder.jpg" here to use as display artwork. If multiple album tracks are selected, the script will make sure only one image file per Album is exported.

Latest version:

  • Maintenance and minor performance fixes

More information for Save Album Art as folder.jpg v5.3 and download link is here.

February 18 2024 - 11:35 am

UPDATED: Quick Convert v5.7

Convert all or just the selected tracks of the selected Playlist using your choice of available encoders, restoring your Preferences-set encoder afterwards.

Additionally, you can:

  • Choose to delete and/or Trash the original tracks and/or files
  • Copy all converted tracks to a playlist

Latest version:

  • Fixes issue with setting to float
  • Maintenance and minor performance fixes
  • Accommodations for macOS Sonoma

More information for Quick Convert v5.7 and download link is here.

February 4 2024 - 2:07 pm

UPDATED: Insert Text into Tag v1.3

This script will insert the same user-entered text at a specific position in the designated tag of each selected track.

The Title, Artist, Director, Album Artist, Album, Category, Composer, Comments, Grouping, Movement, Work and associated Sort tags are the options available in the Popup.

Latest version:

  • Fixes issue with default popup selection
  • Maintenance and minor performance fixes

More information for Insert Text into Tag v1.3 and download link is here.

January 28 2024 - 11:35 am

UPDATED: Show Me The Metadata v3.3

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.

Latest version:

  • Maintenance and minor performance fixes

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

January 28 2024 - 10:59 am

UPDATED: Copy Rating Stars to Other Tag v2.2

This script will convert the rating value (0-100) of a track to the appropriate number of stars as Unicode text and copy that text to the Category, Composer, Grouping or Comments tag, with additional options to copy to the start or end of extant Comments text.

This latest version includes a defaults preference, writable via Terminal, that can switch between using Unicode stars or literal text (eg, "5 Stars", "4 Stars", etc).

Latest version:

  • Adds Category tag
  • Adds defaults preference to change format between Unicode stars and literal text
  • Maintenance and minor performance fixes

More information for Copy Rating Stars to Other Tag v2.2 and download link is here.

January 19 2024 - 11:49 am

UPDATED: File Renamer v5.2

This script will rename the files of the selected tracks (or the files of the tracks in the selected playlist) using a substitution pattern that you formulate from the tracks' tag data. Optionally, export a copy of the files to a chosen location and rename the files in that location.

Works optimally with "Keep Media folder organized" un-checked.

Latest version:

  • Fixes issue with checking a media app for new selections
  • Maintenance and minor fixes for Sonoma

More information for File Renamer v5.2 and download link is here.

December 22 2023 - 6:33 pm

UPDATED: Time of Selected v1.0

This script will simply display the total time of the selected tracks. This information is also displayed if the Music app's Status Bar is displayed. But [an irritated Correspondent let me know that] the Status Bar is no longer available when viewing a loaded CD. Oversight or feature?

Handier when assigned a keyboard shortcut.

Latest version:

  • Initial release

More information for Time of Selected v1.0 and download link is here.

December 9 2023 - 2:52 pm

New Way to Make Playlists Comes to Sonoma 14.2

I have the Sonoma 14.2 Release Candidate and Apple has changed the way new playlists are created in the Music app. When the File > New > Playlist menu item is clicked, or Command-N is pressed, a panel will display allowing you to enter a name and provide artwork for the new playlist.

I dislike this. But there doesn't seem to be a way to shut it off.

Happily, creating a playlist with AppleScript hasn't changed. Here's a very simple script that when run will just create a new playlists named "Playlist" like it used to be.

tell application "Music" to reveal (make new playlist)

You can save this in Script Editor as a ".scpt" (Script) file in the ~Library/Music/Scripts/ folder and even give it a keyboard shortcut.

A more advanced version of this script, "Name New Playlist From Selection" is explained in this link. It was originally written for iTunes. But just substitute "Music" where "iTunes" appears in the script and it should work fine.

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