Created
September 27, 2019 10:21
-
-
Save LeZuse/d6f6a184f1d65274a04e94212d9aef8a to your computer and use it in GitHub Desktop.
Zoom (un)mute
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
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