CSS code in applescript

M

Mortimer.mail

Hi

I have an applescript that creates an email in entourage. For the body
I was using normaly HTML which worked fine. I am now trying to use CSS
format. The email is created ok and the body is populated ok except
all of the formating of the text is missing and I am left with plain
text. Do i need to use the CSS in a different format to get it to
work?

Below is a copy of my applescript with the CSS code.

set theRecipient to {"(e-mail address removed); "}
set theCCRecipient to {""}
set theBCCRecipient to {""}
set theSubject to "Attached CVs"
set theContent to "<HTML><body>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" >Thank you </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" >very</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > much for </
SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;text-
decoration:underline;\" >taking</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > the time to
</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 18px;color:
#AA0000;\" >interview</SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" > . </SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;font-weight:
bold;\" ><BR></SPAN>
<SPAN STYLE= \"font-family: 'Verdana';font-size: 12px;\" ><BR><BR></
SPAN>
</Body></HTML>"
tell application "Microsoft Entourage"
set msg to make new outgoing message with properties
{subject:theSubject, content:theContent, recipient:theRecipient, has
html:true, CC recipients:theCCRecipient, BCC
recipients:theBCCRecipient}
activate
end tell
 
D

Diane Ross

I have an applescript that creates an email in entourage. For the body
I was using normaly HTML which worked fine. I am now trying to use CSS
format. The email is created ok and the body is populated ok except
all of the formating of the text is missing and I am left with plain
text. Do i need to use the CSS in a different format to get it to
work?

Just so you know you aren't being ignored....I have no clue how to help with
this. AFAIK, this is the first time this question has ever been asked.
 
N

Neal Reid

Diane Ross said:
Just so you know you aren't being ignored....I have no clue how to help with
this. AFAIK, this is the first time this question has ever been asked.

Is this not yet another example of Entourage's weak-kneed HTML
engine? I suspect it simply doesn't know from CSS...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top