My Apple Music app 1 has 12,000+ tracks, many of which I’ll bet I’ve not heard in a long time. To help reacquaint me with my own collection, I use the Genius Shuffle feature.
Doug Adams, maestro of the essential Doug’s Applescripts for Music, TV, and iTunes, also likes the Genius Shuffle feature in the iTunes and Music apps. If you like Shuffle’s on-the-fly assortment of tracks, his AppleScript code lets you save the tracks to a playlist.
Doug explains how to copy the code into the Script Editor and where to save the script so you can use it.
IMPORTANT: In macOS 10.15 and later, you will need to replace “iTunes” in the code with “Music”.
His code automatically names the playlist “Genius Shuffle.” Doug prefaces that name with the music style or genre – “70’s Funk - Genius Shuffle”, for example. I prefer to preface mine with the playlist’s first track, so “Kathy’s Waltz - Genius Shuffle.” And then I move it to a Genius Playlists folder.
If you spend way too much time lovingly curating your collection of ripped and downloaded music, then get to know Doug’s scripts.
Related links:
- Apple Support page on Genius Playlists and Genius Shuffle
- Doug has a great page of Missing Menu Commands: “…a list (a very subjective list) of scripts that perform tasks you may wish were actual iTunes, Music or TV Menu commands”. The “Preserve a Genius Shuffle Playlist” is not among them and deserves to be. Of that list, I use “Open iTunes Script Folder” as a quick way to open a Finder window to the Script folder. “Toggle Checkmarks of Selected” is what I use to deselect all my Christmas tracks so they don’t appear in Genius Shuffle or other non-holiday playlists.
-
Why, oh why did they get rid of the perfectly good “iTunes” name to go with the blander “Music”? When I’m Googling to troubleshoot issues with the app, I get too many false positives with Apple’s music-streaming service. Infuriating. ↩︎