How do I hide this error from the Mac menu bar?

I use the following to show the currently playing track & Artist from Apple Music in the Mac menu bar:

When a track is not playing, I get an error like this:

Screenshot 2026-04-23 at 5.11.21 PM

Is there a way to hide that error when the track is not playing?

If you change your approach a bit, you can do it. I'd use two macros: One watches the state of the music player, and enables or disables the "show in menu bar" macro group based on the state of the music player.

It also sets a variable equal to either a space (if nothing is playing) or whatever you want (track and artist, etc.) for when it is playing. The "show in menu bar' macro group then shows that variable, not the raw token value.

Download Macro(s): Music checker.kmmacros (3.5 KB)

Macro notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.
System information
  • macOS 26.4.1
  • Keyboard Maestro v11.0.4

Here's the music checker macro, in some group other than the "show in menu bar" group:

And here's the "show in menu bar" group:

-rob.

3 Likes

Thanks Rob!