• 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
Re: waiting for Mail to complete a send
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: waiting for Mail to complete a send


  • Subject: Re: waiting for Mail to complete a send
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 6 Dec 2005 20:11:54 +0100

If Mail is not mandatory, then you could have a look to XMail scripting additions, if you're interested by keeping a coy of the mail, the osax will return you the mail that was sent so that you can archive it for a later usage. XMail is free and under the GNU GPL licence.

<http://www.lestang.org/osax/XMail/>
--
Jean-Baptiste Le Stang

Le 6 déc. 05, à 00:38, Jim Brandt a écrit :

This piece of a script worked before Tiger and Mail version 2.0.
The intent was to select a particular message to send, wait until it was sent
and then quit the mail application.

Unless the message is extremely short, most of the time Mail quits before
the message has finished sending and I have to restart Mail to get it to
complete.

Is there a more appropriate way to wait for the send action to complete?
Does the "Out" mailbox even exist anymore in Mail?

The script piece:



tell application "Mail"

set msgList to outgoing messages

repeat with msg in msgList

if subject of msg is thedate then

set msgID to msg

exit repeat

end if

end repeat

send msgID

repeat until (messages of mailbox "Out" is {})

tell application "System Events" to do shell script "sleep 5"

end repeat

quit

end tell

_______________________________________________
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
 _______________________________________________
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

References: 
 >waiting for Mail to complete a send (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Applescript Newbie - OS9 to OSX
  • Next by Date: Re: Applescript Newbie - OS9 to OSX
  • Previous by thread: waiting for Mail to complete a send
  • Next by thread: Re: waiting for Mail to complete a send
  • Index(es):
    • Date
    • Thread