Re: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
Re: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
- Subject: Re: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
- From: Michelle Steiner <email@hidden>
- Date: Fri, 7 Nov 2008 15:22:33 -0700
On Nov 7, 2008, at 2:57 PM, Marc Glasgow wrote:
-- this works to generate a "reply" message in a new window
set OutboundMssg to reply PayPalMess
-- but it would appear the pointer (OutboundMssg) is not valid...
It's a bug in Mail's scripting that has been there since Tiger, if not
earlier. It's not that the pointer is not valid; it does not return a
message ID at all. Same problem with forwarded messages.
On a separate note, is the color of the email entry in the
mailbox window scriptable? I readily found how to script
colors within a mail document, but am having issues doing
the same to the selected message that the reply was generated
for...
Here is a starting point:
tell application "Mail"
tell message viewer 1
set the background color of item 1 of (get the selected messages) to
purple
end tell
end tell
This will also work:
tell application "Mail"
set the background color of item 1 of (get the selection) to purple
end tell
I don't know which is the preferred way, though.
-- Michelle
--
If you don't hit any bumps in the road, you're not moving.
_______________________________________________
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