Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
- Subject: Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
- From: "Marc S.A. Glasgow" <email@hidden>
- Date: Thu, 13 Feb 2003 22:19:52 -0500
Greeting fellow listers,
yes, I've been quite (but lurking) for quite some time. I've written
a script to grab some inbound information from UPS tracking updates and
remail just the relevant data to my clients who are expecting the
packages. One thing I haven't licked yet is how to specify that a
specific paragraph of text be colored to something other than the
default (red instead of black).
Code segment in question:
-- the following line is for demonstration purposes only (the string is
actually 22
-- paragraphs long and contains 1500 characters or so):
set FormulatedLetterContents to "AA BB CC DD EE" & return & "FF GG HH"
-- time to create the new outbound message
set ShipNotice to make new outgoing message with properties [CON'T]
{sender:"<email@hidden>", reply to: [CON'T]
"email@hidden", visible:true}
tell ShipNotice to make new to recipient at end of to recipients [CON'T]
with properties {address:OutboundRecipient}
set subject of ShipNotice to OutboundTitle as text
set content of ShipNotice to FormulatedLetterContents
-- ^^ Right here is the problem. Having composed ^^
-- FormulatedLetterContents from a number of different
-- information sources, I have effectively a very long text
-- string, and I'm placing it into the body of the letter. How
-- do I specify that I want paragraph 2 of the text to become
-- red? I tinkered on this for hours last night, but was
-- unable to lick it. Couldn't even figure out if the color
-- reference was in RRGGBB or by name or by some other
-- color space.
Any help appreciated.
=-= Marc S.A. Glasgow
email@hidden
www.cyberpoet.net
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.