• 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: Setting Message Color in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Message Color in Mail


  • Subject: Re: Setting Message Color in Mail
  • From: Rick Gordon <email@hidden>
  • Date: Mon, 13 Feb 2012 13:24:02 -0800

Title: Re: Setting Message Color in Mail
It's not correlating.

tell application "Mail"
tell message viewer 1
           set vSelectedMailboxes to selected messages --Errors without variable step
                tell item 1 of vSelectedMailboxes
                       return background color
        end tell
        end tell
end tell

The background color property returns none when list item is colored. The message file does not show a Finder label, nor are the list colors restricted to seven Finder label colors.

Rick Gordon

------------------

On 2/13/12 at 9:03 PM +1100, Brian Christmas wrote in a message entitled
"Re: Setting Message Color in Mail":

On 13/02/2012, at 8:02 PM, KOENIG Yvan wrote:


Le 13 févr. 2012 à 07:56, Rick Gordon a écrit :
I'm just looking at using Apple Mail, after having been a Eudora user for years. Looking through the AS dictionary (10.6), I'm not seeing a property for setting the message color (as viewed in the list of the message viewer). What am I missing?
--
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________


If I understand well, you need to set the message's property:
background color
but I don't know if it's available in 10.6.
It's available in 10.7

Yvan KOENIG (VALLAURIS, France) lundi 13 février 2012 10:02:15

G'day Rick

I think something like this will work in 10.6.

Regards

Santa

tell application "Mail"
        set temp to message 2 of mailbox "* items to manually process"
        set background color of temp to purple
end tell

tell application "Mail"
        tell message viewer 1
                try
                        set tempMessageList to (get the selected messages)
                        repeat with eachMessage in tempMessageList
                                set background color of eachMessage to red
                        end repeat
                on error errmsg number errnum
                        if errnum = -1719 then
                                display dialog "You must select some Mail."
                        else
                               
                                display dialog errmsg & "   " & errnum
                        end if
                end try
        end tell
end tell


I've tried setting the 'other' property,  but to no avail, even tho it's available from the Finder.

                set background color of eachMessage to {1234, 1234, 1234}
               
doesn't work


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
>kgordon.com
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


--
___________________________________________________

RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________

WWW:   http://www.shelterpub.com
 _______________________________________________
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: 
 >Setting Message Color in Mail (From: Rick Gordon <email@hidden>)
 >Re: Setting Message Color in Mail (From: KOENIG Yvan <email@hidden>)
 >Re: Setting Message Color in Mail (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: META - multipart MIME digests of this group on iPad
  • Next by Date: Populating a variable from a txt file
  • Previous by thread: Re: Setting Message Color in Mail
  • Next by thread: Re: Setting Message Color in Mail
  • Index(es):
    • Date
    • Thread