As part of a script to send a message with Mail, I use the following:
tell application "Mail" to activate tell application "System Events" tell process "Mail" click button "Send" of group 1 of group 1 of tool bar 1 of window thedate end tell end tell
This sends the current draft, created by another part of the script.
I now wish to quit the Mail application, once the mail has been sent. Frequently, the message contains several fairly large attachments and thus takes 30 seconds to a minute to send.
Is there a good, reliable way to determine when the send task is complete?
TIA,
Jim Brandt |