Created
February 12, 2020 15:49
-
-
Save dkarter/3fbb7af1f181d48d080e3494546dfd62 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
on run argv | |
set zoom to "zoom.us" | |
set wait to 0.5 | |
log "activating zoom" | |
tell application zoom to activate | |
# Wait for Zoom's create meeting window to open | |
tell application "System Events" | |
repeat until visible of process zoom is true | |
log "waiting for zoom process" | |
delay wait | |
set visible of process zoom to true | |
end repeat | |
end tell | |
tell application "System Events" | |
tell process zoom | |
keystroke "w" using {command down} | |
end tell | |
end tell | |
tell application "System Events" | |
tell process zoom | |
click button "Leave Meeting" of window "End Meeting" | |
end tell | |
end tell | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment