Re: Mail.app message
Re: Mail.app message
- Subject: Re: Mail.app message
- From: John Delacour <email@hidden>
- Date: Mon, 11 Aug 2003 20:49:19 +0100
At 12:15 pm -0700 11/8/03, Michelle Steiner wrote:
set thisMessage to make new outgoing message with properties
{message signature:theSignature, visible:true, content:"My iChat
status is " & myStatus & "." & return & "My status message is " &
mySM & "." & return & return}
It seems that whichever is last, signature or content, is all that
goes in the message, but the signature is a random one.
Looks like you have a bug report to write; you may use any of the
above in the report if you would like.
Lots of people have bugs to write. I only wish they would!
You people are at an advantage over me in actually having the luxury
of being able to set the content of an outgoing message. The only
way I can create a message with any content in my state-of-the-art
version is like this. Please try it and see if it works.
local _message, msgprops, _sig, sigprops, to1
tell app "Mail"
set sigprops to {name:"junk", content:my bodytext() & my sigtext()}
activate
set msgprops to {visible:true, subject:"Test"}
set _message to make outgoing message with properties msgprops
set to1 to {address:item 1 of (get email addresses of account 1)} -- elegant!
tell _message to make to recipient at end of to recipients with
properties to1
delete (signatures whose name is name of sigprops)
set _sig to make signature with properties sigprops
set message signature of _message to _sig
save _message
delete _sig
end
on bodytext()
"This is my body ...
"
end
on sigtext()
"
_________________________
+ Ite, missa est
_________________________"
end
-- JD
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.