Re: Entourage: make new contact
Re: Entourage: make new contact
- Subject: Re: Entourage: make new contact
- From: Michelle Steiner <email@hidden>
- Date: Fri, 1 Jun 2001 08:24:46 -0700
On 6/1/01 6:15 AM, Jolly Roger <email@hidden> wrote:
>
Can someone experienced with scripting Outlook Express / Microsoft Entourage
>
tell me why the following snippet returns no error but does not appear to
>
actually generate a new contact entry?
>
>
-- begin script
>
tell application "Microsoft Entourage"
>
set newContact to make new contact with data {first name:"First", last
>
name:"Last", default email address:"email@hidden", description:"This
>
contact was added via AppleScript."}
>
end tell
>
-- end script
Dan Crevier wrote the address book and the Applescripting for Claris
Emailer, and he wrote the Applescripting for Outlook Express and
Entourage (and, I'd guess, the address book as well). I don't have OE,
but I do have Emailer, so I experimented with your code in emailer.
Here's what I found.
tell application "Claris Emailer"
set newContact to make new contact with properties {first
name: "First", last name:"Last", address:"email@hidden",
description: "This contact was added via AppleScript."}
end tell
Note that I changed "default email address" to "address" and "data" to
"properties". You may need to use "data" in your script, though, and (of
course) will need to change the application name back to Microsoft
Entourage.
"default email address" is a reference to which of the existing addresses
within the contact is the default address, but that address has to exist
before it can be referenced.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------