Created
May 6, 2019 21:28
-
-
Save lgastako/4dc80c6915da692c71dce7a5b7e007f5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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