Re: Send outgoing message error from Mail.app
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