Detect zoom window on mac
on subListsToOneList(l) | |
set newL to {} | |
repeat with i in l | |
set newL to newL & i | |
end repeat | |
return newL | |
end subListsToOneList | |
tell application "System Events" | |
set windowList to name of window 1 of (processes whose name is "Zoom") | |
set windowList to subListsToOneList(windowList) | |
set windowString to windowList as text | |
if "Zoom Meeting ID:" is not in windowString then | |
error number -128 | |
end if | |
end tell |
#!/bin/sh | |
function do_upgrade { | |
echo 'done' | |
} | |
# Script will fail if Zoom is in an active call | |
if oascript detect_zoom_active_call.scpt | |
then | |
do_upgrade | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment