I've just started using a new pair of wireless headphones, that have some assistant magic integrated. That works great on my phone, but on my Mac it does nothing (or, it tries to do something to Siri, but she's not really around)

I'd like to somehow map that action to something else - preferably something I can customize to my needs.

From the Console app, I can see that at least 2 bluetooth events happen when I do this - handsFree:siriStatus and handsFree:activateSiri, both under the bluetoothaudiod process. Is it possible somehow to react to these bluetooth events, or are their actions hardcoded in the OS?

  • 1
    Have a look at the comments under this question stackoverflow.com/questions/66274043/…. Even though it's asking about a Bluetooth keyboard, nonetheless the comments under the answer still apply just substituting the device type. Another option is using a third-party app e.g. EventsScripts – user3439894 Feb 23 at 12:27
  • Thanks a bunch, I'll try looking at some of those comments and see if they're helpful! – Thor Jacobsen Feb 23 at 12:34
  • If you have any questions about my first comment in the linked question or about EventScripts, just let me know. I am not affiliated with the developer of EventScripts, just a satisfied user. – user3439894 Feb 23 at 13:06
  • I'm not sure EventsScripts will do what I need - I don't care about connect/disconnect events, but specific actions triggered over bluetooth. But your comment and others have led me towards the apple dev docs and I think there might be an answer there – Thor Jacobsen Feb 23 at 13:29
  • I've spent quite some time now, and I've found the docs that seem relevant, but I can't figure out how to actually react to these events. There's a processATCommand function that I can see is called from the Console logs, but I've no idea how to interact with it from user space. – Thor Jacobsen Feb 23 at 20:58

You must log in to answer this question.

Browse other questions tagged .