Set color of body text in Mail
Set color of body text in Mail
- Subject: Set color of body text in Mail
- From: Michael Tompsett <email@hidden>
- Date: Sat, 14 Jan 2012 17:25:43 +0100
I am trying to change the color and bold a line of text in an email generated by an applescript.
So far i can manage to bold the text, but changing the color does not seem to work (although it doesn't error).
In the example below, the second line of text in the email should be bold and red. At the moment it just bolds up, but nothing more.
Any ideas?
set thebody to "Line 1 should beplain and black line 2 should be bold and red line 3 should be plain and black " tell application "Mail" set theMessage to make new outgoing message with properties {visible:true, subject:"test", content:thebody} tell content of theMessage set properties of paragraph 2 to {font:"Helvetica-Bold", color:{255, 0, 0}} end tell end tell |
_______________________________________________
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