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
if input volume of (get volume settings) = 0 then | |
set level to 100 | |
display notification "mic on" with title "Microphone Toggle" | |
else | |
set level to 0 | |
display notification "mic off" with title "Microphone Toggle" | |
end if | |
set volume input volume level |