Mail's background color
Mail's background color
- Subject: Mail's background color
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 19 Jan 2007 19:33:23 +0100
Hello
I already sent this message on jan. 16 but didn't receive the
published copy so I make a new try ;-)
I'm trying to automate some cleaning in my mailboxes.
I wanted to put a flag on every messages whose background color is
green.
I was unable to make a script doing the job.
So I wrote this short one to check the used syntax.
It runs perfectly except that it returns mising value for a message
whose background is set to green.
Do you know a workaround ?
-- [SCRIPT]
tell application "Mail"
activate
set theMailBox to mailbox of ((selection as list)'s item 1)
tell theMailBox
set i to 2
set background color of message i to green
set properties_i to (properties of message i)
set bkgcolor to background color of properties_i
end tell -- to mailbox
end tell -- to Mail
-- [/SCRIPT]
(* the report display:
… message size:3452, junk mail status:false, date received:date
"samedi 13 janvier 2007 16:38:47", read status:true, was replied
to:false,
background color:missing value,
date sent:date "samedi 13 janvier 2007 16:20:12", floating:false, …
*)
Yvan KOENIG
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden