Bluetooth/BLE: can Max connect to BLE device without using Audio MIDI Setup (MBP)?

Simon Dawes's icon

Hi all,

Am establishing communication between Max and a BLE-enabled ESP32-C3 with the following steps on a MacBook Pro.

  1. Launching MIDI Studio by banging message box with the following script:
    [ ;
    [ max launchbrowser "file:///Applications/Utilities/Audio MIDI Setup.app" ]

  2. Clicking the 'Bluetooth Configuration' tab of MIDI Studio.

  3. Locating the ESP32-C3 in list of devices and clicking "Connect".

Comms are fine and everything's working.
Looking to automate everything as much as possible, though.
Is there any way to connect Max and the ESP32-C3 without having to use Audio Midi Setup (or any outside) application?

Many thanks.

LSka's icon

I don't think you can directly access Bluetooth settings from within Max.
I'd do that with Automator, create a new application, record all the steps, then launch the application from Max.

Simon Dawes's icon

Couldn't make it reliably work with Automator because if anything in Audio MIDI Setup is different to how it was during Watch Me Do (which happens unpredictably and persistently for me) the routine falls apart.

But your suggestion led me to Apple Script Editor which is way more granular and allowed me to put together something which works perfectly.

Thanks for putting my brain on the right track, really happy with it.