• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Entourage: make new contact
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Entourage: make new contact
      • From: Paul Berkowitz <email@hidden>
    • Re: Entourage: make new contact
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Entourage: make new contact
  • Next by Date: Re: Folder action -- attaching script to a folder
  • Previous by thread: Re: Entourage: make new contact
  • Next by thread: Re: Entourage: make new contact
  • Index(es):
    • Date
    • Thread