Re: Entourage scripting question
Re: Entourage scripting question
- Subject: Re: Entourage scripting question
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 11 Dec 2002 18:30:21 -0800
On 12/11/02 5:58 PM, I wrote:
>
make new email address at newContact with properties
>
{contents:"email@hidden"}
>
>
>
You're making an email address of a contact, not a sender or recipient
>
address of a message. Check the Dictionary for 'email address' in the
>
Contact Suite, not 'address' in the Mail and News Suite. When you do it like
>
this, Entourage knows what to do when you send a message to that contact.
If you might be making several email addresses, then that's the way to do
it, as elements of the contact. But the developers have implemented an
undocumented feature that lets you make one email address as if it were a
property, when making the contact:
tell application "Microsoft Entourage"
set theBusinessAddress to {street address:"123 Thing Street",
city:"Sydney", state:"NSW", zip:"2000"}
set newContact to make new contact with properties {business
address:theBusinessAddress, first name:"Testf", last name:"Testl", email
address:"email@hidden"}
end tell
Easy, no?
--
Paul Berkowitz
_______________________________________________
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.