Hey, I would like to create a script that will hide the Floating Menu item (it will be triggered when a specific condition is met) and while it works correctly, the item does not want to hide until I expand the "Visibility" category of the item in BTT.
Below is the content of the script:
tell application "BetterTouchTool"
update_menu_item "629F2B95-C773-481B-851E-ECEC64FD3A78" json "{BTTMenuItemVisibleWhileActive: '0'}" with persist
update_menu_item "629F2B95-C773-481B-851E-ECEC64FD3A78" json "{BTTMenuItemVisibleWhileInactive: '0'}" with persist
end tell