Skip to content

Instantly share code, notes, and snippets.

@dkarter
Created February 12, 2020 15:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkarter/3fbb7af1f181d48d080e3494546dfd62 to your computer and use it in GitHub Desktop.
Save dkarter/3fbb7af1f181d48d080e3494546dfd62 to your computer and use it in GitHub Desktop.
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