There is a way to simplify applying icons to Macros, Multiple Selected Macros or Groups in a couple of steps.
You need to have the icon you want to use already in an existing Macro's Icon Image Well (you can paste any image directly into the Image Well or choose an icon using the icon chooser).
Click in the Icon Image Well and copy βC
Select one or more Macros (in the Macro Column) you want to apply the icon too and paste βV
You can also paste onto one or more selected Groups in the Group Column.
You might be able to further automate this process in a Macro, but as it stands it still works well and is a quick way to apply the same icon to multiple Macros.
BTW - any external image that you paste into the Macro Icon Image Well is made into an image 64x64 pixels automatically so, you don't need to pre-size any external image that you are using for a custom icon.
That's helpful, but not exactly what I was after, unfortunately.
Here's my specific scenario:
I'm using a Luxafor flag just outside my home-office door to show whether I'm busy or not while I'm working. I've got it set up to automatically change from green to red when I'm on a call or yellow when there's an item in my calendar at the current time but I'm not on a call. The flag turns off at the end of my work day, and I can pick a color from the macro group icon to override it or turn it off if I end my work day early.
I have a macro group that is displayed in its own macro group menu in the menu bar with the icon I've set for the group. I'd like to update the icon when the flag color changes so that the icon itself can be an indicator of the current color of the flag. (I'm aware that I can also use tokens in the custom title to show the current color, but would prefer just to see the icon itself.)
So, you have managed to get the custom title in the Menu Bar to change (using "tokens") depending on the flag but you would rather the icon itself changed?
I was going to say that I didn't think this could be done, but in the Macro Group Settings, I see that as well as setting a custom title for the Menu Bar Display of the Group, there is also an option to set the Group's Menu Bar Icon from a Named Clipboard:
In other words as the image in the Named Clipboard is changed so would the Group's icon in the menu bar change.
I can't tell you exactly how to adapt your existing workflow to this (as I don't know what your Macros do) but if you have already worked out a way to change the Title of the Group that is displayed in the menu bar then you should be able to adapt that approach to this. It might be as simple as just adding in a "Set Named Clipboard to Image" Action at the points in your Macros where you are changing the status of whether you are free or busy.
Here is a proof of concept to show that if the contents of the Named Clipboard are changed the icon in the Menu Bar does indeed instantly change:
Yes. In fact I've just made use of this for my Macro Group for Adobe Illustrator. I always want some visual indication of when "snap to point" is enabled. So, now I have a check-mark that appears or goes in my Keyboard Maestro Macro, Menu Bar Icon. (Watch the AI icon on the left in the Menu bar. It gets a check-mark on it when snapping is enabled)