dougscripts.com

Managing Playlists

April 22 2020 - 5:39 pm

UPDATED: Assimilate View Options v5.0

One of the behaviors of iTunes I liked that also made it to the Music app is that when a new playlist is created, it appropriates the arrangement of visible columns from the “Music” library in Songs view—or from the playlist from which it was created if you use “Selection to New Playlist”. Thus you would be assured that your preferred columns would be available in any new playlists you made.

I wrote a script for iTunes that used this behavior to re-create existing playlists with the preferred columns. Unfortunately, because of a bug in the Music app that doesn’t quite handle AppleScript-deleted playlists properly (the original playlists need to be deleted after making re-creations), I was reluctant to release an update to that script.

The bug is still there but the people are clamoring so I figured I just better push this out with a workaround and some caveats in the documentation.

Assimilate View Options v5.0 re-creates each selected playlist so its Songs View column settings (visible columns) are the same as the main “Songs” library.

Unlike the version for iTunes, this one works on batches of playlists. Although, honestly, I wouldn’t do more than a small batch in a single go because I just don’t know how the Music app will react to a lot of playlist manipulation. After each batch is processed, the script will offer to quit and restart the Music app, which is the workaround to getting the playlists Sidebar redrawn correctly.

Unavoidably, Music displays new playlists in “Playlist View” by default. Here’s a tip to assign keyboard shortcuts to View menu options that will make changing to a different view quicker and easier.

More information and download for Assimilate View Options is here. And, please, read the documentation. There are a couple of important considerations to be aware of.

April 21 2020 - 12:25 pm

UPDATED: Delete Empty Playlists v4.2

For macOS 10.15 Catalina and later only. This script will list the empty user-created playlists in the Music app and can delete all or just a selection of them.

NOTE: A bug in the current version of Music prevents the removal of playlists from the Sidebar UI (when they are deleted via an AppleScript like this one) until the Music app has been quit and re-started.

Latest version:

  • Fixed error reading playlist info that prevented launch progress

More information for Delete Empty Playlists v4.2 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.

February 15 2020 - 1:48 pm

NEW: Divvy Up A Playlist v2.0

For macOS 10.15 and later. This script will copy the tracks of a selected user-created playlist to a series of new, smaller playlists each set to a maximum time length and each named with a user-supplied base name and number suffix incremented sequentially. Additionally, the new playlists can all be moved to a new Playlist Folder. Tracks can be distributed in Playlist Order, Current Sorted Order or Randomized.

Latest version:

  • Accommodations for macOS 10.15 Catalina
  • Adds ability to use Play Order, Sorted Order or Random Order
  • Performance and security enhancements

More information for Divvy Up A Playlist v2.0 and download link is here.

February 15 2020 - 1:48 pm

NEW: Make Playlists By Tag v3.0

For macOS 10.15 Catalina and later only. This applet will create new Music track playlists based on each selected entry of a specified tag. That is, create individual playlists for each Artist, Album Artist, Album, Composer (or their “Sort” siblings), Genre, or Year.

Latest version:

  • Accommodations for macOS 10.15 Catalina
  • Performance and security enhancements

More information for Make Playlists By Tag 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.

November 22 2019 - 1:04 pm

UPDATED: Remove From Other Playlists v2.0

This script will remove all replications of the selected tracks (or all the tracks in the selected playlist) from every other user-created playlist (ignoring Smart, Genius and Media Library playlists). The original tracks will not be removed from the selected playlist.

Also see Copy Tracks to Multiple Playlists.

More information for Remove From Other Playlists v 2.0 and download link is here.

October 23 2019 - 2:39 pm

UPDATED: New Shuffled Playist v2.0

This script will create a copy of the selected playlist or folder playlist with its tracks’ play order shuffled–unlike Music’s Shuffle modes which do not display the shuffled order of tracks.

More information for New Shuffled Playlist and download is here.

May 7 2019 - 10:15 am

NEW: New Shuffled Playlist v1.0

When Apple changed the Shuffle behavior of playlists a few years ago—in the Olden Times the actual Play Order of a playlist would be changed by designating it “shuffled”—the only way to see the order of play was to click Up Next.

This still bothers some users. One of them asked me if something could be done to show the actual new shuffled play order in the playlist.

New Shuffled Playlist will create a copy of a selected playlist or folder playlist with its tracks’ Play Order randomly shuffled. The new playlist will be named using the original playlist’s name with ” – Shuffled*” appended at the end.

If a ” – Shuffled*” playlist is selected it will be shuffled again; if a ” – Shuffled*” playlist already exists for a selected playlist then it can be shuffled again.

This works great with a keyboard shortcut. More information and download is here.

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