• 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
Re: Set color of body text in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set color of body text in Mail


  • Subject: Re: Set color of body text in Mail
  • From: Iurista GmbH <email@hidden>
  • Date: Sat, 14 Jan 2012 20:38:33 +0100

Am 14.01.2012 um 17.25 schrieb Michael Tompsett:

> 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


Addendum
I forgot,that you wanted red.
Now this is a strange thing:

property red : {65535, 2427, 2427}
property rot : {65535, 2427, 2427}--German word for red

Your scripts works (always SnoLeo) when taking "rot", but not with "red"

I have any clue why this is so
Rudolf

 _______________________________________________
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

References: 
 >Set color of body text in Mail (From: Michael Tompsett <email@hidden>)

  • Prev by Date: Re: Set color of body text in Mail
  • Next by Date: Rép : Set color of body text in Mail
  • Previous by thread: Re: Set color of body text in Mail
  • Next by thread: Rép : Set color of body text in Mail
  • Index(es):
    • Date
    • Thread