Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a calendar event in Automator that creates and sends an email message then quits Mail. It creates and sends the message fine but then gives an error when attempting to quit Mail. I've had it running for months under Lion and recently upgraded that machine to Mountain Lion 10.8.2. The error happened under both versions. The error is -1700 which is errAECoercionFail. Mail isn't putting up any alerts that might keep it from quitting. Any ideas as to what would cause this?

Screenshot of Automator log

share|improve this question
Does the menu bar item for quitting Mail also get disabled? You could try running quit app "Mail" in an AppleScript action instead. – user495470 Nov 29 '12 at 8:58
Why are you waiting for three minutes before the last step? – myhd Dec 19 '12 at 14:51
@myhd To give Mail more than ample time to get the message sent. – SSteve Dec 19 '12 at 16:04
If you are sure all mails are sent within 3 minutes: 1) Is there a Automator command to activate / bring Mail to the foreground? It's a long shot, but can you insert that before "Quit" command? 2) If all fails, I’m sure there is a way to quit Mail with a terminal command via Automator. Are you comfortable with this thought? – myhd Dec 19 '12 at 16:50

I had the same problem. Checking the 'ask to save changes' seems to resolve the issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.