Created
August 13, 2024 16:22
-
-
Save prabowomurti/477ed19863c8aa24fbb444a9438a19f8 to your computer and use it in GitHub Desktop.
Apple Script to those who don't have a mute button on their microphone
This file contains hidden or 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
on getMicrophoneVolume() | |
input volume of (get volume settings) | |
end getMicrophoneVolume | |
on disableMicrophone() | |
set volume input volume 0 | |
display notification "Microphone has been disabled" with title "Muted" | |
end disableMicrophone | |
on enableMicrophone() | |
set volume input volume 100 | |
display notification "Microphone has been enabled" with title "Unmuted" | |
end enableMicrophone | |
if getMicrophoneVolume() is greater than 0 then | |
disableMicrophone() | |
else | |
enableMicrophone() | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment