Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
- Subject: Re: "outgoing message" and "message" classes in Mail's AppleScript dictionary
- From: André Renault <email@hidden>
- Date: Mon, 26 Jul 2010 18:59:25 -0400
I think the Outgoing Msg is for what you want to send, while message is an object of any generic one. Also the make command requires the at parameter.
On Jul 26, 2010, at 1:41 PM, Jashanjeet Singh wrote:
> Hi,
> Mail's AppleScript dictionary has following two classes "outgoing
> message" and "message"
>
> I can make "outgoing message" by using the below code
> tell application "Mail"
> make new outgoing message with properties {visible:true, subject:"My
> Subject", content:"My test content"}
> end tell
>
> but when I try to make "message" object
> tell application "Mail"
> make new message with properties {subject:"My Subject", content:"My
> test content"}
> end tell
> than I get error "Mail got an error: Can’t make or move that element
> into that container." number -10024
>
> Why I cannot create "message" object?
> I am trying of create "message" object because I want to set "date
> sent" field in the "message". And I cannot set "date sent" field in
> "outgoing message".
> Can I create object of type "message"?
> or
> Do we have any way to set "date sent" field in newly created
> "outgoing message".
>
> Thanks
> Jashan
> _______________________________________________
> 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
_______________________________________________
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