Re: Mail to recipients
Re: Mail to recipients
- Subject: Re: Mail to recipients
- From: cricket <email@hidden>
- Date: Tue, 18 Feb 2003 10:37:24 -0800
Freaky. I was able to get this to work correctly. The only thing I can
think of is maybe the comma in the name property is throwing it off.
- cricket
On Monday, February 17, 2003, at 19:39PM, Larry Staton Jr. wrote:
I copied the following from Apple's example Mail Scripts.
-- CODE --
tell application "Mail"
set newMessage to make new outgoing message with properties
{subject:"Close panel in iCal", content:"I received the following
error: " & return & return}
tell newMessage
set visible to true
make new to recipient at end of to recipients with properties
{address:"email@hidden", name:"Larry Staton, Jr."}
end tell
-- return {name, address} of to recipient 1 of newMessage
send
end tell
-- END CODE --
This script fails to display the "to recipient" name or address in the
To: field. When I ask for the return values, Script Editor returns the
proper values of name and address.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.