Skip to content

Instantly share code, notes, and snippets.

@lexicalunit
Created February 23, 2021 20:55
Show Gist options
  • Save lexicalunit/ddcc9709bb6c007f3e05edd30290f561 to your computer and use it in GitHub Desktop.
Save lexicalunit/ddcc9709bb6c007f3e05edd30290f561 to your computer and use it in GitHub Desktop.
Detect if Zoom is running on macOS.
#!/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