Skip to content

Instantly share code, notes, and snippets.

@Jeetah
Created March 26, 2021 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jeetah/3f135a78994cb18751ad8b3402d322c9 to your computer and use it in GitHub Desktop.
Save Jeetah/3f135a78994cb18751ad8b3402d322c9 to your computer and use it in GitHub Desktop.
BetterTouchTool Apple Script for muting/unmuting microphone
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 80
tell application "BetterTouchTool"
set_string_variable "micState" to "🔊Unmute"
end tell
else
set inputVolume to 0
tell application "BetterTouchTool"
set_string_variable "micState" to "🔇MUTED"
end tell
end if
set volume input volume inputVolume
tell application "BetterTouchTool"
set_string_variable "micVolume" to inputVolume
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment