• 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: Scripting the Colors palette
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting the Colors palette


  • Subject: Re: Scripting the Colors palette
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 16 Mar 2009 09:51:13 +1100

G'day Barry

Are you aware that you can change the color directly without the color wheel?

So....

tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:MainMailRecipient, subject:the_subject, content:the_content}
tell newMessage
set x to offset of TheBusinessName in the_content
set font of characters x thru (x + (count of TheBusinessName)) of content to "Helvetica Bold"
set color of characters x thru (x + (count of TheBusinessName)) of content to {56342, 2442, 607}
set y to offset of "Hour " in the_content
set the size of characters (y + 5) through ((count of the_content) - (count of EndString)) to 14
repeat with x from y to ((count of the_content) - (count of EndString))
if character x of the_content = "●" then
set color of characters x thru x of content to {56342, 2442, 607}
delay 0.01
end if
end repeat
make new to recipient with properties {address:MainMailRecipient}
repeat with themailitem in ReportCCRecepients
make new cc recipient at end of cc recipients with properties ¬
{address:themailitem}
end repeat
send
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

References: 
 >Scripting the Colors palette (From: Fass-Holmes Barry <email@hidden>)

  • Prev by Date: Image events error
  • Next by Date: Re: Stock Quotes using AppleScript
  • Previous by thread: Scripting the Colors palette
  • Next by thread: Re: Scripting the Colors palette
  • Index(es):
    • Date
    • Thread