I'm trying to quit Excel via AppleScript
tell application "Microsoft Excel"
quit
end tell
Unfortunately, when I have a new spreadsheet opened, run the script and select "Do not save" then Excel does close but after a while Automator prompts a Syntax error stating AppleEvent caused a timeout.
Is there a better way to quit Excel avoiding this error?
Thank you!
quit excel
action not suffice?