How do I find out the code for the action that is executed from a macOS menu bar (i.e. I want to know the code that is executed when I turn Bluetooth on/off or when I connect to a specific device)?
valid question