Skip to content

Instantly share code, notes, and snippets.

@lgastako
Created May 6, 2019 21:28
Show Gist options
  • Save lgastako/4dc80c6915da692c71dce7a5b7e007f5 to your computer and use it in GitHub Desktop.
Save lgastako/4dc80c6915da692c71dce7a5b7e007f5 to your computer and use it in GitHub Desktop.
property running : False
property checkInterval : 30
on run
tell application "System Events"
if (exists application process "zoom.us") then
running = True
end if
end tell
end run
on idle
runningNow = (exists application process "zoom.us")
tell application "System Events"
if running and not runningNow then
set volume output volume 2
end if
end tell
running = runningNow
return checkInterval
end idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment