godbout / alfred-airpodspro-connector

that shit connects and disconnects your AirPods Pro through Alfred. 🎩️
MIT License
60 stars 3 forks source link

Workflow commands are not executing #4

Closed mcgaritydotme closed 1 year ago

mcgaritydotme commented 2 years ago

When connected, my AirPods fail to disconnect:

[19:57:13.881] AirPods Pro Connector[Script Filter] Queuing argument '(null)'
[19:57:14.047] AirPods Pro Connector[Script Filter] Script with argv '(null)' finished
[19:57:14.051] AirPods Pro Connector[Script Filter] {"items": [
    {
        "uid": "connector",
        "type": "default",
        "title": "disconnect McGarityDotMe’s AirPods",
        "arg": "--disconnect 14-60-CB-E0-4E-55 --notify",
    }
]}
[19:57:17.737] AirPods Pro Connector[Script Filter] Processing complete
[19:57:17.738] AirPods Pro Connector[Script Filter] Passing output '--disconnect 14-60-CB-E0-4E-55 --notify' to Run Script
[19:57:31.631] AirPods Pro Connector[Script Filter] Queuing argument '(null)'
[19:57:31.795] AirPods Pro Connector[Script Filter] Script with argv '(null)' finished
[19:57:31.800] AirPods Pro Connector[Script Filter] {"items": [
    {
        "uid": "connector",
        "type": "default",
        "title": "disconnect McGarityDotMe’s AirPods",
        "arg": "--disconnect 14-60-CB-E0-4E-55 --notify",
    }
]}
[19:57:32.651] AirPods Pro Connector[Script Filter] Processing complete
[19:57:32.655] AirPods Pro Connector[Script Filter] Passing output '--disconnect 14-60-CB-E0-4E-55 --notify' to Run Script

If I send the "apc" keyword again, I get this error:

[19:57:32.662] ERROR: AirPods Pro Connector[Run Script] zsh:3: command not found: BluetoothConnector

mcgaritydotme commented 2 years ago

If it matters, it's with an OOTB M1 MacBook Pro running Monterey 12.1

effndc commented 2 years ago

Bluetooth Connector can be installed through Homebrew or perhaps other package managers: brew istall bluetoothconnector Once installed you may need to link it manually into a path that is in your $PATH, or you will need to add the full path to the script. Brew installs it to /opt/homebrew/Cellar/bluetoothconnector/2.0.0/bin/BluetoothConnector. Note path may change with version changes of BluetoothConnector.

godbout commented 2 years ago

ah sorry. as explained everywhere i haven't received any notification from GitHub. only seeing now. will add a reference to bluetoothconnector in the README. thanks.

godbout commented 2 years ago

added: https://github.com/godbout/alfred-airpodspro-connector#setup