Applescript to hide Menubar items

Anyone know of an AppleScript to hide/unhide menubar items? And yes, I know that we have apps like Bartender and Vanilla but neither of them is consistent or very elegant when used with a complicated Keyboard Maestro macro. Therefore, I'd like to find an AppleScript solution.

Any help is much appreciated.

Does this help? https://stackoverflow.com/questions/45112289/how-to-send-a-menubar-app-with-no-menubar-menu-items-a-command-in-applescript. I laughed when the first reply was use Keyboard Maestro. There is also an applescript suggestion further down the page. If this gets you somewhere, report back and help the rest of us :slight_smile: