Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redirect a message in Mail



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Redirect a message in Mail (From: Tim Mansour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.