Re: Creating Entourage contacts (revisited)
Re: Creating Entourage contacts (revisited)
- Subject: Re: Creating Entourage contacts (revisited)
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 21 Jun 2001 19:55:31 -0700
On 6/21/01 5:18 PM, "JollyRoger" <email@hidden> wrote:
>
On 6/21/2001 5:10 PM, "Paul Berkowitz" <email@hidden> wrote:
>
>
> But you can also choose to do this:
>
>
>
> set newContact to make new contact with properties {first name:"First",
>
> last name:"Last", description:"added via AppleScript.", email
>
> address:{contents:"email@hidden"}}
>
>
>
> as the easy way.
>
>
I tried this. It does create a contact, but the contact has no email
>
address. So I guess there is no way to do it in one step.
There is. I just got it wrong last time:
set newContact to make new contact with properties {first name:"First",
last name:"Last", description:"added via AppleScript.", email
address:"email@hidden"}
Yes, it's undocumented, and it shouldn't really work like that, but it's one
of those little shortcuts you can find in Entourage. There are several
similar ones to do with recipients and group entries. Sticking with the
formal dictionary definition of an element, and creating it afterwards as an
element of a contact does work, but this shortcut can be handy.
--
Paul Berkowitz