macos – Shortcut to toggle Bluetooth in Montery by way of blueutil shell script executed with AppleScript in BetterTouchTool

0
8
Adv1


Adv2

I’ve set the Mission Management key in BetterTouchTool to execute an AppleScript and it labored positive earlier than the replace from Mojave to Montery which I simply did

do shell script "../bluetoggle.sh"

content material of file is

#!/bin/sh 

blueutil -p toggle

however cannot execute in BetterTouchTool.. it says

enter image description here

Executing file from Terminal works flawless.

Executing one other script (do shell script “../karaprof.sh”) in BetterTouchTool with following content material to modify profile in Karabiner additionally works completely

#!/bin/sh

pro0="e"
pro1="g"

cli='/Library/Software Help/org.pqrs/Karabiner-Components/bin/karabiner_cli'

identify=$("$cli" --show-current-profile-name)
if [ "$name" = $pro0 ]; then
"$cli" --select-profile $pro1
else
"$cli" --select-profile $pro0
fi

So my guess is I have to set permission for BetterTouchTool to execute scripts in Terminal, however how? I can not determine

Adv3