• 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: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window (From: Marc Glasgow <email@hidden>)

  • Prev by Date: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
  • Next by Date: Re: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
  • Previous by thread: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
  • Next by thread: Re: Apple Mail: changing subject & content of "reply", plus setting color of message in mailbox window
  • Index(es):
    • Date
    • Thread