قالب وردپرس درنا توس
Home / Apple / How can I enable two applications from an AppleScript app?

How can I enable two applications from an AppleScript app?



So I play around with AppleScript and am completely new to it.

How did I turn off the script with both apps if:

  • app1 and app2 run
  • or if app1 or app2 is running [19659004] and run them if they are not running

My script:

  if the application "app" runs or "app2" then runs
Tell the app "app1" to quit
Tell the app "app2" to quit
else
Tell the app "app1" to enable
Tell the app "app2" to enable
end up

Source link