dougscripts.com

Catalina

March 6 2020 - 1:46 pm

NEW: Sundry Info To Comments v5.0

For macOS 10.15 Catalina and later. 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 time or stop time (HH:MM.SS), 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:

  • Accommodations for macOS 10.15 Catalina and the Music app
  • Adds encoder name as option (not always detectable or accessible)
  • Removed Episode ID as an option; no longer a Music tag
  • Performance and security enhancements

More information for Sundry Info To Comments v5.0 and download link is here.

March 3 2020 - 8:42 am

UPDATED: Quick Convert v5.2

For macOS 10.15 Catalina and later. 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:

  • Adds "Quit after conversion" option
  • Logistics and performance enhancements

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

March 1 2020 - 8:00 pm

NEW: Roman Numerals to Upper Case v2.0

This script will convert any Roman numerals in the Name, Grouping, Work and Movement tags of each selected track to upper case. (Note that this will affect the stand-alone letters "C" and "D"--if, perhaps, they are used to designate key--and the English pronoun "I". Of course, these are conventionally upper-cased anyway.)

Latest version:

  • Accommodations for macOS 10.15 Catalina and general maintenance
  • Adds Grouping, Work and Movement tags
  • Adds "Test" option when a single track is selected to view Name change before committing
  • Performance and security enhancements

More information for Roman Numerals to Upper Case v2.0 and download link is here.

March 1 2020 - 1:33 pm

UPDATED: Increment Number Tags v3.3

For macOS 10.15 Catalina and later only. 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:

  • Better handling of preferences between launches for both Music and TV apps
  • Minor performance and logistics improvements

More information for Increment Number Tags v3.3 and download link is here.

February 29 2020 - 11:24 am

Script Menu Issue?

The other day I dumped a couple of new AppleScript files into [home]/Library/Music/Scripts/ to make sure they ran OK from there and was surprised that the Music app did not recognize them and that they did not display in its Script menu.

Re-launched Music. Nothing.

Restarted the machine. Nothing.

Now, I am using the latest beta of Music on the latest beta of macOS 10.15.4, so maybe it's a beta thing. However, I've seen this behavior in the past and it generally is resolved by restarting Music. But not this time.

Anyway, if you are seeing the same problem, try installing the script files in the local Library location: [startupdisk]/Library/Music/Scripts/. That worked as expected for me. (I haven't tested this with scripts for the TV app.)

February 28 2020 - 10:25 am

UPDATED: Search-Replace Tag Text v6.3

For macOS 10.15 and later only. Performs a search-and-replace on the text in your choice of track tags in the Music or TV app (Song Name/Title, Artist/Director, Album Artist, Album, Composer, Comments, Genre, Grouping, Show, Movement or Work) in the selected tracks or all the tracks in the selected Playlist. Features case sensitivity and whole word match options and "Test run" preview.

Latest version:

  • Now works with the TV app -- see the Read me for installation info
  • Other minor performance and logistics accommodations

More information for Search-Replace Tag Text v6.3 and download link is here.

February 27 2020 - 12:36 pm

A Remedy for Missing Display Artwork

There still appears to be an artwork issue for some Music app users. Several Correspondents report that they know they have artwork for a track, or at least are pretty sure that they did prior to updating to macOS 10.15 and the Music app. Some have been able to confirm that a track's file contains image metadata (see Show Me The Metadata). Yet no artwork is displayed for the track in the Music app.

Artwork issues don't fluster me so I hadn't investigated this. But it turns out that I also have some tracks that, despite having files with image metadata, aren't displaying artwork. Not a lot of them and not in every display context (for example, if only one track from an album had artwork, it might display in Album view, and so on). But they were quite noticeable once I started looking for them. A playlist displayed in Playlist View is probably the easiest way to eyeball for them

I tried using the Music app's AppleScript refresh command, which is meant to grab metadata from a track's file, but perhaps it doesn't apply to the image metadata. Anyway, it didn't work to refresh the artwork.

Then I tried using Coverscope, which is an applet that can embed track entry artwork to the track's file or apply the file's image metadata as the track's artwork. ("Criss-cross!") And it worked!

Unfortunately, in this case, Coverscope only works on one track at a time. It wasn't built for batch operations.

So: Apply Embedded Artwork is a script applet I made to refresh a track entry's artwork from the image data already embedded in its file's metadata—image data that is apparently ignored by the Music app.

It can be run on any number of tracks; if a selected track has no local file or already has assigned artwork then it will simply be ignored. If its local file contains image metadata then it will be applied as the track's album artwork.

Apply Embedded Artwork is free to use with donation nag. More information and download is available here.

(My thanks to Correspondent Zak Z. who also confirmed the Coverscope results and beta-tested the remedy.)

February 24 2020 - 5:43 pm

UPDATED: Super Remove Dead Tracks v5.3

For macOS 10.15 Catalina or later. Scans the Music or TV app for tracks whose files are inaccessible or no longer available (so-called "dead" tracks). Outputs a tab-delimited text log listing the tracks by Artist, Name, Album and last known file location. The registered version will delete the tracks.

Also see List MIAs and Music Folder Files Not Added.

Latest version:

  • Drops 10-day trial; tracks are deleted using registered versions only
  • Minor logistic changes

More information for Super Remove Dead Tracks v5.3 and download link is here.

February 24 2020 - 5:41 pm

UPDATED: Random Full Albums to Playlist v3.1

For macOS 10.15 Catalina and later only. This script will assemble a user-set number of randomly selected full albums to a playlist. The "Some Random Albums" playlist will be re-created on successive launches unless you choose to append additional random albums to the existing "Some Random Albums" playlist. (A "full album" is a set of tracks with the same album name, track count and disc number and where the number of these tracks is equal to the common track count; it will not select all the disks in a multi-disk collection, just one of them; accurate tags are a must!)

Assign it a keyboard shortcut.

Also see Play Random Album.

Latest version:

  • Fixes odd regression whereby a new entered number might cause an error and only "Cancel" will allow the script to proceed
  • Other monor tweaks
  • v3.0 (Feb 17, 2020):
  • Accommodations for macOS 10.15 Catalina
  • Performance and security enhancementsx

More information for Random Full Albums to Playlist v3.1 and download link is here.

February 17 2020 - 11:58 am

UPDATED: Random Full Albums to Playlist v3.0

For macOS 10.15 Catalina and later only. This script will assemble a user-set number of randomly selected full albums to a playlist. The "Some Random Albums" playlist will be re-created on successive launches unless you choose to append additional random albums to the existing "Some Random Albums" playlist. (A "full album" is a set of tracks with the same album name, track count and disc number and where the number of these tracks is equal to the common track count; it will not select all the disks in a multi-disk collection, just one of them; accurate tags are a must!)

Assign it a keyboard shortcut.

Also see Play Random Album.

Latest version:

  • Accommodations for macOS 10.15 Catalina
  • Performance and security enhancements

More information for Random Full Albums to Playlist v3.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.