Force refresh of widget/button externally

Hi,

I use my Touch Bar to display the state of some checks. Currently, I am pooling by using the run every X seconds feature of BTT.

However, I would like to have more responsiveness and I was wondering if this is possible to force a widget / button to refresh by invoking a command ?

Thanks

osascript -e 'tell application "BetterTouchTool"' -e 'refresh_widget "REPLACE-BY-UUID-HERE"' -e 'end tell'
1 Like