I have done a script to quit program:
tell application "Live"
quit
end tell
…but I get this prompt to click the OK button:
I am running my Mac for schedule shutdown as it is running for an exhibition with unman on/off.
Could someone help me write an AppleScript to click this button?