Music Search Macro (v9.1)

Music Search Macro (v9.1)

Search.kmmacros (56 KB)

This might be my first macro post. I used the Share > Keyboard Maestro Forum command and, well, here I am.

I've just upgraded from iTunes to Big Sur and am using the new Music app. I want Cmd-F to get a search that fits the current context. For example, if you're viewing a playlist or your library, Cmd-F should search that playlist or that view of your library. But if you're in Apple Music, Cmd-F should search Apple Music. Music uses a Search field in Apple Music, and a Filter field in your library/playlist. This macro figures out which to use. All comments welcome, and my apologies if there's already a better macro for this.