Created
July 11, 2019 12:13
-
-
Save 1stvamp/9cfba93a431f2d6f247f21f6f3c6d62b to your computer and use it in GitHub Desktop.
Detect zoom window on mac
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
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 |
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
#!/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