So I am playing around with AppleScript and am quite new to it.
How do I make the script quit both apps if:
- app1 and app2 are running
- or if app1 or app2 is running
- and run them if they are not running
if application "app" is running or "app2" is running then tell application "app1" to quit tell application "app2" to quit else tell application "app1" to activate tell application "app2" to activate end if