Popular Now
downloaded 29m 1s ago
Save Album Art to Album Folder v5.10
For iTunes Export artwork of selected tracks to parent or specified folder
downloaded 1h 56m 37s ago
For Music Edit the Category tag of selected track(s)
downloaded 2h 18m 19s ago
For Music Swap the name with the artist of selected tracks
downloaded 2h 18m 25s ago
Roman Numerals to Upper Case v2.1
For Music Convert Roman numerals in selected tracks' tags to upper case
downloaded 2h 18m 53s ago
For Music/TV View/Edit tags of selected track(s) in single window
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: 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.
UPDATED: Lyrics Tag Viewer v1.1
View and edit a selected track's Custom Lyrics tag in a non-modal window, which, unlike a track's Info panel, will not block keyboard and mouse activity in the Music app's interface.

Latest version:
- Works around an issue that prevented exporting as text
- Minor adjustments and fixes
More information for Lyrics Tag Viewer v1.1 and download link is here.
UPDATED: Rate Me! Rate Me! v6.8
This stay-open applet watches your playing tracks and when one begins playing displays a notification-sized panel whereby a Rating and/or Favorite or Suggest Less 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:
- Fixes issue with misdetecting computed ratings
- Fixes issue which could prevent correctly updating Favorite/Suggest Less
- Fixes issue that might ignore "Show for unrated tracks only" setting
More information for Rate Me! Rate Me! v6.8 and download link is here.
UPDATED: Remove Leading-Trailing Spaces v3.3
This script will remove any number of extra space characters at the beginning and ending of chosen tags (Title, Artist/Director, Album Artist, Album, Composer, Genre, Grouping, Movement, Work and Show) in the selected tracks.

Latest version:
- Maintenance and minor performance fixes for Sonoma
More information for Remove Leading-Trailing Spaces v3.3 and download link is here.
UPDATED: Restore Artwork from Album Folder v4.7
This script will look for an image file in the parent folder of each selected track's file--presumably its Album folder in which you have previously placed an image file of some sort--and apply the data from that image file as artwork for the track.
Also see Save Album Art to Album Folder and Save Album Art as folder.jpg which assist with exporting album artwork as image files.
Latest version:
- Maintenance and minor performance fixes for Sonoma
More information for Restore Artwork from Album Folder v4.7 and download link is here.
UPDATED: Merge-Delete Playlists v7.4
This script will allow you to merge the track contents of two or more playlists to a new or existing playlist or delete any number of playlists at once, including Smart, Genius, and Playlist Folder playlists. The merge feature will prevent the same tracks that may appear in different source playlists from being duplicated and has an option to delete original playlists. The delete feature only deletes playlists; tracks, of course, remain in the library.

Latest version:
- Maintenance and minor performance fixes
More information for Merge-Delete Playlists v7.4 and download link is here.
UPDATED: Delete Empty Playlists v5.4
This script will list the empty user-created playlists in the Music app and can delete all or just a selection of them.

Latest version:
- Maintenance and minor performance fixes
- Tested for macOS Sonoma 14
More information for Delete Empty Playlists v5.4 and download link is here.
UPDATED: CD-Text to CD Info v6.3
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:
- Maintenance and minor performance fixes
- Tested under macOS Sonoma 14
More information for CD-Text to CD Info v6.3 and download link is here.




