Skip to content

Instantly share code, notes, and snippets.

@fullkomnun
Created August 23, 2021 13:49
Show Gist options
  • Save fullkomnun/e797a92161ce1557c6c3a6f838047c4d to your computer and use it in GitHub Desktop.
Save fullkomnun/e797a92161ce1557c6c3a6f838047c4d to your computer and use it in GitHub Desktop.
Restart iriun webcam + zoom
set zoomAppName to "zoom.us"
tell application zoomAppName to quit
repeat
tell application "System Events"
if zoomAppName is not in (name of application processes) then exit repeat
end tell
do shell script "sleep 0.5"
end repeat
set iriunAppName to "IriunWebcam"
tell application iriunAppName to quit
repeat
tell application "System Events"
if iriunAppName is not in (name of application processes) then exit repeat
end tell
do shell script "sleep 0.5"
end repeat
tell application iriunAppName to launch
tell application zoomAppName to launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment