If then else action based on visibility of color palette

I am writing a simple if then else macro to change text colors in apple notes.

My problem is how to determine if the color palette is displayed (ie visible) at any point in time.

The color palette toggle shift cmd C is not useful because it simply toggles the palette.

If there any way to ascertain whether the color palette is displayed in an app (in this case apple notes) using the the if then else action ?

thank you very much

image

If it's visible, the menu item Format > Hide Colors will be enabled. If it's not visible, then the menu item Format > Show Colors will be enabled. Check for one or the other states of that menu in an If/Case conditional, and then act accordingly.

-rob.

1 Like

I am embarrassed. I should have thought of it ! thanks very much !