Created
February 23, 2021 20:55
-
-
Save lexicalunit/ddcc9709bb6c007f3e05edd30290f561 to your computer and use it in GitHub Desktop.
Detect if Zoom is running on macOS.
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
#!/bin/bash | |
APP="zoom.us" | |
OP="osascript -e 'tell application \"System Events\" to (name of processes) contains \"$APP\"'" | |
test "$(eval "$OP")" = "true" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment