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: Problem with Reply, Forward and Outgoing Messages in Application "Mail"



On Jun 9, 2006, at 8:59 AM, Joseph Pollone wrote:

I'm having trouble figuring out how to set the recipient address
property.  If recipAddr = "email@hidden" how do I set the recipient
address using these properties?

set foo to make new outgoing message with properties {visible:true,
subject:"test"}

Addressees are elements, not properties, so they have to be added after the message is created.


tell application "Mail"
set foo to make new outgoing message with properties {subject:"test", content:"this is a test", visible:true}
tell foo
make new to recipient with properties {name:"Michelle Steiner", address:"email@hidden"}
end tell
end tell



-- You can not change the world without perforce changing yourself.

_______________________________________________
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: 
 >Problem with Reply, Forward and Outgoing Messages in Application "Mail" (From: Henry Halff <email@hidden>)
 >Re: Problem with Reply, Forward and Outgoing Messages in Application "Mail" (From: Michelle Steiner <email@hidden>)
 >Re: Problem with Reply, Forward and Outgoing Messages in Application "Mail" (From: Henry Halff <email@hidden>)
 >Re: Problem with Reply, Forward and Outgoing Messages in Application "Mail" (From: Michelle Steiner <email@hidden>)
 >Re: Problem with Reply, Forward and Outgoing Messages in Application "Mail" (From: "Joseph Pollone" <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.