Skip to content

Instantly share code, notes, and snippets.

@suidroot
Created November 3, 2021 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suidroot/2dc809fdf0de54303e46143b6a586b1b to your computer and use it in GitHub Desktop.
Save suidroot/2dc809fdf0de54303e46143b6a586b1b to your computer and use it in GitHub Desktop.
Webex Controller
tell application "System Events"
tell process "Webex Meetings"
activate
if exists (window "Webex") then
set window_name to "Webex"
end if
if exists (window "Cisco Webex Meetings") then
set window_name to "Cisco Webex Meetings"
end if
if ("{query}" = "Mute") then
if exists ((first button where accessibility description = "Unmute") of window window_name) then
click (first button where accessibility description = "Unmute") of window window_name
else if exists ((first button where accessibility description = "Mute") of window window_name) then
click (first button where accessibility description = "Mute") of window window_name
end if
end if
if ("{query}" = "Camera") then
if exists ((first button where accessibility description = "Start video") of window window_name) then
click (first button where accessibility description = "Start video") of window window_name
else if exists ((first button where accessibility description = "Stop video") of window window_name) then
click (first button where accessibility description = "Stop video") of window window_name
end if
end if
#click (first button where accessibility description = "{query}") of window window_name
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment