Alphabetized Address book & Company Names

C

CvT

Hi,
A topic that has been touched but w/o any resolution. I have several
contacts that are just company names (eg. Restaurants, etc.). When I try to
sort the names in the Address book, the records with only company names are
at the top (assuming A-Z ordering) and all jumbled (I think it is date
added).

Anyway, to make sure they are ordered. As an fyi, I have done the following
but didn't work
1. Rebuilt database
2. Used nicknames script from PB (no good as it doesn't solve the problem
when I add contacts in my Palm)

Is this a bug or is there a workaround?
 
M

Mickey Stevens

I place the company name into the Last Name field, which sorts properly on
the Palm and also solves the sorting problem in Entourage if you sort by
name.

This script based on one posted earlier by Paul Berkowitz should transfer
all of your company names to the Last Name field for contacts without a
name.

-- Based on a script by Paul Berkowitz
tell application "Microsoft Entourage"
set allContacts to every contact
repeat with aContact in my allContacts
tell aContact
if company ‚ "" and last name = "" and first name = "" then
set newName to company
set its last name to newName
end if
end tell
end repeat
beep
activate
display dialog "All done!" buttons {"OK"} default button 1 with icon 1
end tell
 
S

Stoner

I've had the same problem, and I've tried similar resolutions without
any luck. I think it's a bug. If there's a workaround, I'd love to know.
 
P

Paul Berkowitz

The best solution - given this bug or "poorly implemented new feature" (in
Entourage X, contacts with only company name had an empty entry in Name
column) - is to always the duplicate the Company as the Last Name when
you're making new contacts. To take care of your current contacts, run this
script in Script Editor:

tell application "Microsoft Entourage"
set companyContacts to every contact whose name = "" and company ‚ ""
repeat with theContact in my companyContacts
tell theContact
set last name to its company
end tell
end repeat
beep
activate
display dialog "All done!"
end tell


You can do something similar also for contacts which have no name, no
company, just email address, and for those with no name, no company, no
email address, just MSN Messenger address. All these appear at the top in
Name column too in mixed up order.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
Top