dougscripts.com

Popular Now

Save Album Art to Album Folder

downloaded 16m 38s ago

Save Album Art to Album Folder v6.4

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

Flush Apple Music Cache Files

downloaded 38m 31s ago

Flush Apple Music Cache Files v1.0

For iTunes Delete files downloaded and cached by Apple Music

downloaded 39m 2s ago

New Play Count v3.0

For iTunes Set the Plays of selected tracks

downloaded 41m 27s ago

Move Playlists to Folder v2.3

For iTunes Move selected playlists to a new or existing folder

downloaded 1h 6m 43s ago

Filenames to Song Names v4.0

For Music/TV Rename each selected track's Name with its filename (minus extension)

downloaded 1h 11m 30s ago

Play Random Album v4.0

For Music Creates and plays playlist using tracks from album chosen at random

Welcome!

Download hundreds (571 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!

January 22 2020 - 10:20 am

UPDATED: Make A Text List v6.1

For macOS 10.15 Catalina and later only. This script can assemble a list of tag information about the selected tracks (or tracks in the selected playlist) using a configurable pattern substitution string and provides the ability to export this formatted text to the clipboard, a text file or the Print Dialog.

Latest version:

  • Adds support for the Music app
  • Adds "Insert Only TABs" option to Token Field's Action Menu
  • Adds "Show [TAB] instead of real tab" option to accessory controls
  • Fixes issue when encountering tracks without location property
  • Fixes issue with date formatting
  • Performance enhancements

More information for Make A Text List v6.1 and download link is here.

January 18 2020 - 8:36 pm

UPDATED: Save Album Art to Album Folder v6.3

For macOS 10.15 Catalina and later only. This script will export the artwork 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 a single user-selected folder. If multiple album tracks are selected, the script will make sure only one artwork file per Album is exported.

Also see Save Album Art as folder.jpg.

Latest version:

  • Adds preference setting to prefer Album Artist, if it exists, instead of Artist when naming the image file
  • Minor performance enhancements

More information for Save Album Art to Album Folder v6.3 and download link is here.

January 13 2020 - 12:53 pm

UPDATED: Multi-Item Edit v6.6

For macOS 10.15 and later only. This applet will allow you to view and edit most tags (and some additional options) of the selected track(s) in a single floating window using single-edit mode (one selected track) or multi-edit mode, which emulates the pre-iTunes 12 "multiple items" format; that is, a checkbox adjacent to each tag allows you to select which changes are to be applied to the selection's tags.

Can also be used to copy collected tags from one set of tracks to another set of tracks by toggling "Information Tracking".

Thanks to Wolfgang Reszel for the icon.

Latest version:

  • Fixes issue applying data to single selected track
  • Minor UI adjustments
  • Performance improvements

More information for Multi-Item Edit v6.6 and download link is here.

January 7 2020 - 10:27 am

Track Number isn't a TV Tag (Much)

I have to admit, it's hard to keep in mind what tags from iTunes are still available for which media in the Music and TV apps.

Case in point: the track number tag. A Track Number is the index of a track in its album play order. Every school child knows that (well, every school child familiar with "album"). Strictly speaking, it is a music-related tag. But because iTunes handled music and video tracks, ALL tracks had a track number tag.

The TV app apparently does not care to have much truck with the Track Number tag; it does not appear in a track's Show Info panel. But it can appear as a column in List View. And it is still accessible by AppleScript.

I heard from a Correspondent who was concerned about his pristine TV Show track numbering largely being obscured by the TV app. I suppose you could: 1) Put the list of TV Shows in List View, 2) Show the Track Number column and 3) Command-I each track and manually enter the Track Number into the episode field.

Or, run this script on a selection of TV tracks to copy the track number to the episode number:

tell application "TV"

set mySelection to (get a reference to selection of front browser window)

if mySelection is not {} then

repeat with aTrack in mySelection

try

tell aTrack to set episode number to track number

end try

end repeat

end if

end tell

January 1 2020 - 8:44 pm

UPDATED: File Renamer v4.5

For macOS 10.15 Catalina and later only. 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 problem with [play order]
  • Re-configured how the Preview window is/is not displayed
  • Minor performance enhancements

More information for File Renamer v4.5 and download link is here.

December 30 2019 - 1:24 pm

UPDATED: Find Empty Media Folders v2.1

For macOS 10.15 and later. This applet will traverse the Media folder looking for and displaying any sub-folders that are either empty or that do not contain Media-apps-playable media, such as text or image files.

Free to use in Demo Mode: While in Demo Mode, several convenient features will be disabled, including

  • Show Finder Information Window
  • Reveal in Finder
  • Send to Trash
  • Select all Empty/non-Empty
  • Scan other user-selected folder

Also see Media Folder Files Not Added.

To purchase a registration code, 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:

  • Additional tweaks for macOS 10.15 compatibility

More information for Find Empty Media Folders v2.1 and download link is here.

December 29 2019 - 9:54 pm

EQ and Volume Adjustments

It's been years since I've monkeyed with the Equalization and Volume Adjustment settings for tracks. I believe these were initially included with SoundJam and then iTunes to help compensate for the negligible audio quality of notebook speakers. Currently, I DAC out to an integrated amp set to bypass EQ and loudness; I'm trying to keep the audio path as digitally uncluttered as possible.

Anyway, plenty of other people do use the EQ and volume track settings and have good reasons for doing so and I heard from one. This Correspondent wanted to segregate, what he called, tracks with "non-standard" EQ and volume settings. By which he meant not None and not 0 detente, respectively. And by which he also meant "is there a script to do this?"

First, tracks can be sorted by Equalizer name when displayed in Songs View.

So finding the batches of tracks that have been assigned freaky EQ settings is a scroll-through-the-library away. And also no AppleScript necessary. And I can go back to watching football.

Second, AppleScript is pretty much the only way that tracks can be mustered by the volume adjustment property. A track's volume adjustment can range between -100 and 100 with 0 as the default detente. Here is a script that will find all the tracks whose volume adjustment value does not equal 0 and put them in their own brand new playlist:

tell application "Music" to duplicate (get a reference to (tracks whose volume adjustment is not 0)) to (make new playlist with properties {name:"Volume Not 0"})

I was surprised I had about 300 tracks of my own that weren't set to 0 volume. Don't know how that came to be. Must have gone berserk one day or something.

December 26 2019 - 8:51 pm

UPDATED: Not In Any Playlist v3.0

OS X 10.15 Catalina or later. This applet will scan the Music app for tracks that are not assigned to any user-created playlists and display them. Includes options to export the list as a text file, ignore Smart playlists, and copy selected tracks to a new or existing playlist.

Latest version:

  • Accommodations for macOS 10.15 Catalina
  • Performance and security enhancements

More information for Not In Any Playlist v3.0 and download link is here.

December 21 2019 - 11:45 am

UPDATED: Compare Two Playlists v4.3

For macOS 10.15 Catalina and later only. Quickly compares the contents of any two playlists and displays the tracks that are common to both or the tracks in one playlist not contained by the other. Has tools to copy or move tracks from one playlist to another or delete common tracks from one or the other playlist. Can optionally create a text file report of these comparisons.

Free to try in Demo Mode: While in Demo Mode, several features will be disabled. An in-app purchase of a registration code will unlock the disabled features.

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

Latest version:

  • Corrects a Dark Mode issue with playlist icons
  • Additional accommodations for macOS ≥ 10.15.3

More information for Compare Two Playlists v4.3 and download link is here.

December 19 2019 - 8:09 pm

NEW: Select Files and Convert v1.0

For macOS 10.15 Catalina and later only. This script applet will convert a selection of files in the Finder using an encoder from the Music app. Converted files can be saved to a user-selected location and will be removed from the Music app after the process...as though it "never saw them". Includes options to create a "Converted" subfolder and delete source files.

This script is intended to replace an older script droplet called Drop A Few My Way. I just wasn't able to get the droplet action to swing the way I wanted. So I scrapped the dropping and went with the selecting.

I use this in the Finder toolbar so I can quickly convert files in the front Finder window.

Latest version:

  • Initial release

More information for Select Files and Convert v1.0 and download link is here.

Site contents © 2001 - 2020 (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 interrupt the one doing it.