Skip to content

Instantly share code, notes, and snippets.

@1stvamp
Created July 11, 2019 12: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 1stvamp/9cfba93a431f2d6f247f21f6f3c6d62b to your computer and use it in GitHub Desktop.
Save 1stvamp/9cfba93a431f2d6f247f21f6f3c6d62b to your computer and use it in GitHub Desktop.
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