Re: Adding additional headers to new outgoing Mail message?
Re: Adding additional headers to new outgoing Mail message?
- Subject: Re: Adding additional headers to new outgoing Mail message?
- From: Michelle Steiner <email@hidden>
- Date: Tue, 8 Nov 2005 14:33:47 -0700
On Nov 8, 2005, at 2:06 PM, Don Johnson wrote:
I've been sending Mail messages from FileMaker (5.5) using
AppleScript for a few years now, and have decided to get "fancy"
and format the messages in HTML rather than plain text.
However, I can't figure out how to set the "Content-Type:" header
using AppleScript ... or do anything else, for that matter, which
tells Mail to display the message as HTML.
While I can get AppleScript to read headers from messages already
received, attempting to set or read headers from a new outgoing
message (as in the following script) throws an error ... what's up?
tell application "Mail"
set newMessage to make new outgoing message with properties
{sender:"email@hidden", subject:"test", content:"body" & return}
set theHeaders to the name of every header of newMessage
end tell
According to the mail.app dictionary; "header" is neither a property
nor an element of "outgoing message"; further, outgoing message
inherits only from item, and not from message.
If you modify the script to return the properties of the new message,
you will not see a property header.
-- Michelle
--
We're surrounded. That simplifies the problem.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden