Created
July 12, 2023 16:27
-
-
Save TaylorJadin/bb8e06f6069c71b4f6f40c126a0ad6ce to your computer and use it in GitHub Desktop.
Open (or Close) OBS and hide the window
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
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