• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Set color of body text in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Set color of body text in Mail
      • From: Iurista GmbH <email@hidden>
    • Re: Set color of body text in Mail
      • From: Iurista GmbH <email@hidden>
  • Prev by Date: Rép : alias list broken ?
  • Next by Date: Re: Set color of body text in Mail
  • Previous by thread: Rép : alias list broken ?
  • Next by thread: Re: Set color of body text in Mail
  • Index(es):
    • Date
    • Thread