Created
December 18, 2017 20:51
-
-
Save AliKarpuzoglu/a5ce01c5a3812094a91d3d6e22fd12b4 to your computer and use it in GitHub Desktop.
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 | |
return input volume of (get volume settings) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment