Popular Now
downloaded 28m 22s ago
For Music/TV Finds any empty or obsolete folders in the Media folder
downloaded 34m 23s ago
Restore Artwork from Album Folder v4.7
For Music Restore each selected track's artwork from an image file stored in its Album folder
downloaded 1h 1m 38s ago
For Music Gather tracks that do not have lyrics text
downloaded 2h 33m 30s ago
For Music/TV Remove Music/TV tracks disassociated from files
downloaded 5h 57m 22s ago
For Music Convert or import tracks with any encoder on the fly
downloaded 6h 28m 27s ago
For Music/TV Append user-entered text to beginning or ending of selected tag of each selected track
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:
- Managing Tracks
- Managing Track Info
- Managing Artwork
- Managing Playlists
- Controlling iTunes
- Exporting Info
- Managing Files
- Networking
- Internet
- iPod (iPhone/iPad)
- Miscellaneous
- With Other Apps
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!
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.