Re: Entourage scripting question
Re: Entourage scripting question
- Subject: Re: Entourage scripting question
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 11 Dec 2002 17:58:21 -0800
On 12/11/02 5:42 PM, "James Wondrasek" <email@hidden> wrote:
>
I am trying to do something simple - create a new contact in Entourage,
>
but the email field keeps getting mangled. Below is the code:
>
>
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"}
>
make new email address at newContact with data {display
>
name:"Testing test", address:"email@hidden"}
>
end tell
>
>
The resulting email address in Entourage is:
>
>
dle2TEXT:dspnTEXTTesting testaddrTEXT
>
email@hidden
>
>
which looks a bit different in a one line field.
>
I've tried make with properties, but Entourage doesn't seem
>
to like that. Any suggestions?
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.
--
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.