Shortcut to toggle Bluetooth in Montery via blueutil shell script executed with AppleScript in BetterTouchTool


I have set the Mission Control key in BetterTouchTool to execute an AppleScript and it worked fine before the update from Mojave to Montery which I just did

do shell script "../bluetoggle.sh"

content of file is

#!/bin/sh 

blueutil -p toggle

but can’t execute in BetterTouchTool.. it says

enter image description here

Executing file from Terminal works flawless.

Executing another script (do shell script "../karaprof.sh") in BetterTouchTool with following content to switch profile in Karabiner also works perfectly

#!/bin/sh

pro0="e"
pro1="g"

cli='/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli'

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

So my guess is I need to set permission for BetterTouchTool to execute scripts in Terminal, but how? I can’t figure

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img