Here’s a challenge:
I am running Marco Arment’s Quitter to hide/quit applications that I haven’t touched in a while. However, there are occasions where this isn’t useful. During screen sharing sessions, for example.
I’ve recently switched to use BetterTouchTool to operate my StreamDeck and I’d love to have Quitter’s state reflected in the appearance of a toggle button.
How do I best script selecting an element from the Menubar icon’s context menu (right click or option-click)? Especially when the icon is hidden using Bartender.
How to get/parse the state (enabled/disabled), which is shown in text form in that very context menu to be then used in the RegEx condition to switch the button’s appearance in BTT?
Marco doesn’t offer any CLI or scripting options, or did I miss something?
Add as BTT Stream Deck a trigger that does the aforementioned hotkey, followed by delay 0.1, Down, delay 0.1, Enter. This allows to toggle Quitter ON/OFF by clicking the corresponding menu item instead of your cursor.
This would show Quitter if it is OFF which should make it noticeable enough for you to spot it.
You’d likely want to show the status bar icon grayed vs black on your Stream Deck button but I don’t have a Stream Deck myself so I don’t know how to show this specifically. If you do find a way, you can undo point 3.