Trigger Macro When Bluetooth mouse Connects/Disconnects?

Hey
I’m trying to set up an automation macro that reacts to my Logitech MX Master 3 mouse connecting or disconnecting via Bluetooth. What I’d like to do is:

  • When the mouse connects → activate the BetterMouse app
  • When the mouse disconnects → quit BetterMouse

I know about the “USB Device Key Trigger,” but since the MX Master 3 connects over Bluetooth, it doesn’t appear there.

Is there any way to trigger a macro based on a Bluetooth device connection status, or any reliable workaround to detect when the mouse is connected/disconnected?

Ideally, I’m looking for something event-based, and not a macro that just polls every few seconds/minutes

Thanks

Then take a look at EventScripts, which will let you run an AppleScript to either launch or quit BetterMouse as needed. EventScripts's "trigger" includes the name of the device that dis-/re-connected, so you don't even have to grep System Profiler!

BTW

Is EventScript still available in App Store? I live in Europe and receive message that this product is not available in my country. Probably because lack of full information about the seller.

Certainly available to UK-based App Store users.