• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Determining when mail has been sent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining when mail has been sent


  • Subject: Determining when mail has been sent
  • From: Jim Brandt <email@hidden>
  • Date: Thu, 25 Aug 2005 18:47:19 -0500

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 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Determining when mail has been sent
      • From: Le Stang Jean-Baptiste <email@hidden>
    • Re: Determining when mail has been sent
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: Mail and Attachments
  • Next by Date: Re: Mail and Attachments
  • Previous by thread: Run Slide Show in PowerPoint
  • Next by thread: Re: Determining when mail has been sent
  • Index(es):
    • Date
    • Thread