I'm writing a Mac Catalyst app that displays graphics in a window while trying to play Apple Music content in the background.
However, if the Music.app is not already running, as soon as my app goes to stream a song (which does successfully play) the Music.app's window pops-up on screen, obscuring my app's window!
Is there something simple I can do to force Music.app to stay iconified?
I'm trying to avoid hacking this. (...like having to use "scripting bridge," if that's even still possible, or forcing a hotkey to close the window, or something similarly kludgey.)
Thanks for any ideas!
However, if the Music.app is not already running, as soon as my app goes to stream a song (which does successfully play) the Music.app's window pops-up on screen, obscuring my app's window!
Is there something simple I can do to force Music.app to stay iconified?
I'm trying to avoid hacking this. (...like having to use "scripting bridge," if that's even still possible, or forcing a hotkey to close the window, or something similarly kludgey.)
Thanks for any ideas!