Shortcut to toggle Bluetooth in Montery via blueutil shell script executed with AppleScript in BetterTouchTool
1
vote
1
answer
277
views
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
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

Asked by needlol
(134 rep)
Oct 19, 2022, 07:57 AM
Last activity: Aug 5, 2025, 10:01 AM
Last activity: Aug 5, 2025, 10:01 AM