Skip to content

Instantly share code, notes, and snippets.

@TaylorJadin
Created July 12, 2023 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TaylorJadin/bb8e06f6069c71b4f6f40c126a0ad6ce to your computer and use it in GitHub Desktop.
Save TaylorJadin/bb8e06f6069c71b4f6f40c126a0ad6ce to your computer and use it in GitHub Desktop.
Open (or Close) OBS and hide the window
set appname to "OBS"
if application appName is running then
log appName & " is already running"
do shell script "killall OBS"
else
do shell script "open -a /Applications/OBS.app --args --startvirtualcam"
delay 3
tell application "System Events"
repeat until visible of process appname is false
set visible of process appname to false
end repeat
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment