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: Jashanjeet Singh <email@hidden>
- Date: Tue, 27 Jul 2010 07:45:59 +0530
I tried with following code by using at parameter:-
tell application "Mail"
make new message at mailbox "Filed" with properties {subject:"My
Subject", content:"My test content"}
end tell
But I am getting the error:-
"Mail got an error: Can’t make or move that element into that
container." number -10024
Regards
Jashan
On 7/27/10, André Renault <email@hidden> wrote:
> 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