Last active
April 17, 2020 14:53
-
-
Save LeZuse/30cb07c9d3adf100ba0ec9e04a373683 to your computer and use it in GitHub Desktop.
Mac OS un/mute with notification using Automator
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
-- Credits: https://superuser.com/a/937488/44834 | |
-- https://apple.stackexchange.com/a/346995/62041 | |
set inputVolume to input volume of (get volume settings) | |
-- Zoom does not allow the input volume to drop to 0, so we check by "lower than" | |
if inputVolume < 10 then | |
set inputVolume to 100 | |
set displayNotification to "Microphone Unmuted" | |
else | |
set inputVolume to 0 | |
set displayNotification to "Microphone Muted" | |
end if | |
set volume input volume inputVolume | |
display notification displayNotification | |
delay 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup