Copying contact from one address book to another

  • Thread starter Authorised User
  • Start date
A

Authorised User

Hi

I'm trying to copy a contact from one Entourage address book to another. The
only way I've got working is to duplicate the contact in the source address
book first and then move it:

on copyContact(aContact, anAddressBook)
tell application "Microsoft Entourage"
set dup to duplicate aContact
move dup to anAddressBook
end tell
end copyContact

This works but I assume you need write-access to the source address book,
which may not always be the case.

I've tried

copy aContact to address book anAddressBook

which does not work.

The following appear to work but actually create a duplicate in the same
address book as the contact:

copy aContact to address book id 123
duplicate aContact to address book id 123
duplicate aContact to anAddressBook

The Script editor prints in the Event Log:

copy contact id 5799 to address book id 123
contact id 5849


Any help appreciated.

Thanks

Praful
 
Top