• 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: Send outgoing message error from Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send outgoing message error from Mail.app


  • Subject: Re: Send outgoing message error from Mail.app
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 26 Jan 2010 13:36:16 -0700

On Jan 26, 2010, at 1:20 PM, Alan Kimelman wrote:

tell application "Mail"
set a_message to item -1 of ((every outgoing message))
tell a_message
make new to recipient at beginning of to recipients ¬
with properties {address:"Foo Goo <foo.goo@gmail.com>", «class rdsn»:"FirstName LastName"}
send
end tell
end tell

I think what you want is this:

tell application "Mail"
set a_message to item -1 of ((every outgoing message))
tell a_message
make new to recipient at beginning of to recipients ¬
with properties {address:"Foo Goo <foo.goo@gmail.com>", «class rdsn»:"FirstName LastName"}
end tell
        send a_message
end tell

As I understand it, the script can't tell the outgoing message to send itself, but rather needs to tell the application to send the message.

-- Michelle

-- 
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."     --Teddy Roosevelt


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Send outgoing message error from Mail.app
      • From: Alan Kimelman <email@hidden>
References: 
 >Send outgoing message error from Mail.app (From: Alan Kimelman <email@hidden>)

  • Prev by Date: Send outgoing message error from Mail.app
  • Next by Date: Re: Send outgoing message error from Mail.app
  • Previous by thread: Send outgoing message error from Mail.app
  • Next by thread: Re: Send outgoing message error from Mail.app
  • Index(es):
    • Date
    • Thread