Skip to content

Instantly share code, notes, and snippets.

@drublic
Created March 6, 2017 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drublic/cb5ffa137d9b0f83a45ef04af6d83f08 to your computer and use it in GitHub Desktop.
Save drublic/cb5ffa137d9b0f83a45ef04af6d83f08 to your computer and use it in GitHub Desktop.
on run {input, parameters}
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 35
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
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment