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: Axel Luttgens <email@hidden>
- Date: Wed, 27 Jan 2010 17:50:27 +0100
Le 26 janv. 2010 à 21:20:28, Alan Kimelman a écrit :
> I am trying to send an outgoing message from Mail.app but run into error number -1708
>
> 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 <email@hidden>", «class rdsn»:"FirstName LastName"}
> send
> end tell
> end tell
>
> In this case the outgoing message id that was targeted was id 33.
>
> AppleScript Editor events response showed the following error:
>
> error "Mail got an error: outgoing message id 33 doesn’t understand the send message." number -1708 from outgoing message id 33
>
> Any ideas on how to have Mail.app send an Email without triggering an error?
> I am running this on a MacBook Pro running Snow Leopard version 10.6.2.
Hello Alan,
Same OS version here, and running snippets similar to this one:
tell application "Mail"
tell last outgoing message
set subject to "Test3"
send
end tell
end tell
works flawlessly.
But what's that «class rdsn» property supposed to be?
Le 26 janv. 2010 à 21:54:54, Alan Kimelman a écrit :
> [...]
> The events and replies pane of the applescript window returned the following:
>
> tell application "Mail"
> get last item of every outgoing message
> --> outgoing message id 39
> make new to recipient at beginning of every to recipient of outgoing message id 39 with properties {address:"Foo Goo <email@hidden>", «class rdsn»:"FirstName LastName"}
> --> «class of outgoing message id 39
Is the above line the exact output as it appears in the pane?
Axel _______________________________________________
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