Change Company field in multiple contacts

G

Guest

Hi there,

My company was recently acquired and I would like to change the contact
company for each person in the old company to the new company name. I
do not know how to do this in Entourage. I built a script to do this,
but it is taking forever, like 30 seconds for each contact, and it will
need to go through all 3000 contacts in my address book.

Is there a way to do this directly in Entourage or is there a way to
speed up the following script?

Thanks!

BEGIN SCRIPT----

tell application "Microsoft Entourage"
activate
repeat with ChangeContact in every contact
tell ChangeContact
if company = "Old Company" then set company to "New Company,
Inc."
if company = "Old Company, Inc." then set company to "New
Company, Inc."
end tell
end repeat
end tell

END SCRIPT----

Thanks,
Eric
 
B

Barry Wainwright

Hi there,

My company was recently acquired and I would like to change the contact
company for each person in the old company to the new company name. I
do not know how to do this in Entourage. I built a script to do this,
but it is taking forever, like 30 seconds for each contact, and it will
need to go through all 3000 contacts in my address book.

Is there a way to do this directly in Entourage or is there a way to
speed up the following script?

Thanks!

http://tinyurl.com/5ofan

tell application "Microsoft Entourage"
set theContacts to every contact whose company contains "Old Company"
repeat with aContact in theContacts
set company of aContact to "New Company, Inc."
end repeat
end tell
 
A

Askolkh Aaisdh

In said:
http://tinyurl.com/5ofan

tell application "Microsoft Entourage"
set theContacts to every contact whose company contains "Old
Company" repeat with aContact in theContacts set company
of aContact to "New Company, Inc." end repeat end tell

Thank you! That totally does the trick! If you don't mind, when I get
a chance I'll put a pretty GUI on it in the studio and put it up on the
help pages for free - with credit to your code example of course. :)

Thanks again,
Eric
 
Top