Re: Redirect a message in Mail
Re: Redirect a message in Mail
- Subject: Re: Redirect a message in Mail
- From: pete boardman <email@hidden>
- Date: Thu, 9 Jun 2005 10:36:45 +0100
On 2005-06-09, at 07:59, Tim Mansour wrote:
I know Mail is quirky to script
:-) I don't think scripting Mail is reliable enough (yet).
redirect takes a boolean for invisibility; you could try setting
that, in case the script doesn't like talking to an invisible message.
You could try targetting the first outgoing message rather than
result of redirect:
tell outgoing message 1
but I can't get that working either.
Note that Apple's Create New Message script does work, so perhaps you
could construct a message the hard way, rather than by using redirect:
tell application "Mail"
set newMessage to make new outgoing message with properties
{subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
set sender to theSender
make new to recipient at end of to recipients with
properties {name:theName, address:theAddress}
tell content
...
Perhaps Apple Mail's chief scripter has retired... (Wasn't he called
cricket?)
Pete
_______________________________________________
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