Created
March 26, 2021 11:00
-
-
Save Jeetah/3f135a78994cb18751ad8b3402d322c9 to your computer and use it in GitHub Desktop.
BetterTouchTool Apple Script for muting/unmuting microphone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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