I have a widget with an alternate color that I'd like to forcibly activate to prevent having to constantly check the value of the variable (I'm checking
I checked the forums and so far have only found this related discussion, which sounds like the same issue I'm seeing. However, the doc page provided 404s and I don't see a direct way to approach the issue on the new Applescript docs page.
I can find ways to perform
update_trigger, but the issue I see with that method is that I can't retain both the original color and background color on the trigger itself. So any future updates to DND would not synchronize the color properly, I believe.
I also see
update_touch_bar_widget that might work for this, but even when I try to set all of the params, the button just disappears and returns in a few seconds. It's also unwieldy to set the
icon_data param via script.
Any advice is appreciated.