get background colo(u)r of mail message?
get background colo(u)r of mail message?
- Subject: get background colo(u)r of mail message?
- From: "Charles Arthur, UKClimbing Editor" <email@hidden>
- Date: Thu, 26 May 2005 14:09:43 +0100
Hi..
sadly, in Tiger one can't create a smart mailbox based on the background
colo(u)r of messages.
Which is mad, of course, since you can change the bgc of a message (even
with rules) but then they just spackle up whichever mailbox. It would be
nice to be able to sort on that but... (Is cricket still about?)
Never mind. I'm smart. I can do this with the dictionary. I'll find the
messages with a particular bgc and move them to a new mailbox.
Mail dict:
background color (blue/gray/green/none/orange/other/purple/red/yellow) :
The background color of the message - property of message.
OK then...
tell application "Mail"
set thelist to selected messages of message viewer 1
set thebg to background color of item 1 of thelist
end tell
{thelist, thebg} -> "Mail got an error: NSInternalScriptError".
Uh? Just for comparison, let's try doing it with a different property of
"message" - such as date received.
tell application "Mail"
set thelist to selected messages of message viewer 1
set thebg to date received of item 1 of thelist
end tell
{thelist, thebg} -> {{message id 4572 of mailbox "INBOX" of account "Gmail"
of application "Mail"}, date "Thursday, May 26, 2005 10:15:37"}
Anyone explain? Anyone like to tell me how the hell I *can* make background
colo(u)r work for me, rather than maintaining its present Swiss-like
neutrality, which is driving me cuckoo?
I'd use Eudora (which has marvellous labelling) except I've not been able
to get v5 to work with GMail. (Yes, I've tweaked all the SSL settings to
hell and back.) Tell me how and Mail might get a well-deserved rest. If you
wanted a GMail account, I could give one out...
best
Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden