AppleScript for launching Music app with custom library

I have a very specific use case for the Music app on macOS, which actually works very well for me. However, it is not very convenient and seamless to use, which is why I would like to make life easier with some sort of Automation using AppleScript.


To get everyone on the same page: You can launch Music with a custom library by ⌥-clicking the app icon. You will be prompted to either create a new library, or select an existing one with Finder. For Apple Music, I am using a separate library (called "Apple Music") because I don't want it to get mixed up with my local, default ("Music") library.


The problem is: Switching libraries is VERY annoying because ⌥-clicking Music strangely works only about 10% of the time for me (it just opens the recently used library instead). Is there a way to quickly change the library Music is set to or directly open a specific library? In other words: Are there input parameters you can use with AppleScript to launch Music with a certain library?


I know this is very much an edge case, but maybe someone has played around with Music libraries before and can help me out.


MacBook Pro 14″

Posted on Sep 24, 2023 9:07 AM

Reply

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript for launching Music app with custom library

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.