Skip to content

Instantly share code, notes, and snippets.

@kjaymiller
Created June 11, 2017 13:48
Show Gist options
  • Save kjaymiller/88acec33f8e127590c7ae3fd1e7f4d2d to your computer and use it in GitHub Desktop.
Save kjaymiller/88acec33f8e127590c7ae3fd1e7f4d2d to your computer and use it in GitHub Desktop.
software cough-button (The AppleScript Way)
(* This AppleScript was inspired by another script I found on the internet. I'm sorry I don't have the original link.
This works really well with BetterTouch Tool or Keyboard Maestro.
DOWNSIDE: I have noticed about a 1/2 millisecond lag to this script. It could be my hardware or just the latency of running it through another tool.
*)
if input volume of (get volume settings) = 0 then
set level to 100
else
set level to 0
end if
set volume input volume level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment