Skip to content

Instantly share code, notes, and snippets.

@binarymatt
Created April 1, 2016 16:38
Show Gist options
  • Save binarymatt/2e48a1bd8382605e361054d36a616dfa to your computer and use it in GitHub Desktop.
Save binarymatt/2e48a1bd8382605e361054d36a616dfa 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 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
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment