alfred-switch-audio icon indicating copy to clipboard operation
alfred-switch-audio copied to clipboard

Command not found: SwitchAudioSource

Open nikhilmaddirala opened this issue 2 years ago • 2 comments

Hi, any idea why I might be getting this error? Per this instructions I've successfully run brew install switchaudio-osx jq. Thanks in advance!

[13:17:05.109] SwitchAudio[Script Filter] Queuing argument '(null)'
[13:17:05.155] SwitchAudio[Script Filter] Script with argv '(null)' finished
[13:17:05.157] STDERR: SwitchAudio[Script Filter] /Users/nikhilmaddirala/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/26C6C0A8-4CC4-4040-9C40-CBCC6FB383F1:3: command not found: SwitchAudioSource
[13:17:05.161] SwitchAudio[Script Filter] {
  "items": []
}

nikhilmaddirala avatar Apr 19 '23 20:04 nikhilmaddirala

mm can you check if this command runs in your terminal?

SwitchAudioSource -a -t output -f json

Then if you see some output try

SwitchAudioSource -a -t output -f json | jq

It should be the same output, but with colors and nicely formatted.

If not, maybe Homebrew is not installed correctly.

dkarter avatar Apr 20 '23 00:04 dkarter

Yes, I can see the output in my terminal, but unfortunately I still get the same error in Alfred!

nikhilmaddirala avatar Apr 20 '23 18:04 nikhilmaddirala