Skip to content

Instantly share code, notes, and snippets.

@LeZuse
Created September 27, 2019 10:21
Show Gist options
  • Save LeZuse/d6f6a184f1d65274a04e94212d9aef8a to your computer and use it in GitHub Desktop.
Save LeZuse/d6f6a184f1d65274a04e94212d9aef8a to your computer and use it in GitHub Desktop.
Zoom (un)mute
tell application "System Events" to tell process "zoom.us"
tell window 1
set buttonTitle to description of button 1
# needs "Window > Always show meetings controls" enabled
if buttonTitle = "Unmute My Audio" then
click button 1
"unmuted"
else if buttonTitle = "Mute My Audio" then
click button 1
"muted"
else
"focus zoom?"
end if
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment