Skip to content

Instantly share code, notes, and snippets.

@salexkidd
Created April 12, 2023 03:29
Show Gist options
  • Save salexkidd/04d01112462fb66c6da5019d1379cdb4 to your computer and use it in GitHub Desktop.
Save salexkidd/04d01112462fb66c6da5019d1379cdb4 to your computer and use it in GitHub Desktop.
Minimize Discord window when zoom lunched
repeat
delay 1
tell application "Finder"
name of every process whose visible is true and name is "Zoom.us"
if the result as Unicode text is "Zoom.us" as Unicode text then
tell application "System Events" to set visible of process "Discord" to false
end if
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment