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:
![]()
Is there a way to hide that error when the track is not playing?
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:
![]()
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)
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.
Thanks Rob!