Sort order wrong for companies with multiple words in name

D

David Wilkie

Companies with more than one word in their name show up with the convention
of a person, e.g., "General Electric" shows up in the "E" instead of "G" ...
in Outlook, there is the Sort As field to solve this problem, but I cannot
find similar in Entourage. Any idea how to sort properly? Thanks!
 
S

scott2si

Try showing the "company" column in your address book (instead of just
the "name" column) and then sort by that column. It should put it in
the G's when you sort by company. Unfortunately, there's no way to
combine two columns in a "primary contact" way, like Now Contact
elegantly does.
 
P

Paul Berkowitz

Try showing the "company" column in your address book (instead of just
the "name" column) and then sort by that column. It should put it in
the G's when you sort by company. Unfortunately, there's no way to
combine two columns in a "primary contact" way, like Now Contact
elegantly does.

Well, there is, but it takes a bit of effort on your part. It certainly is a
shame that Entourage 2004 - which now includes nickname, company, email
address, or instant message address (in that order of priority) for contacts
which do not have a last or first name in the Name column - still does not
sort these with the others. To make sure it does, always copy the Company of
contacts which have no other name into the Last Name field. To take care of
your existing contacts of this type, run this script:

tell application "Microsoft Entourage"
set compContacts to every contact whose name = "" and company ‚ ""
repeat with compContact in compContacts
tell compContact to set last name to (get company)
end repeat
display dialog "All done!"
end tell

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

dcwilkie

Paul said:
On 2/13/05 2:53 AM, in article
[email protected], "[email protected]"


Well, there is, but it takes a bit of effort on your part. It certainly is a
shame that Entourage 2004 - which now includes nickname, company, email
address, or instant message address (in that order of priority) for contacts
which do not have a last or first name in the Name column - still does not
sort these with the others. To make sure it does, always copy the Company of
contacts which have no other name into the Last Name field. To take care of
your existing contacts of this type, run this script:

tell application "Microsoft Entourage"
set compContacts to every contact whose name = "" and company , ""
repeat with compContact in compContacts
tell compContact to set last name to (get company)
end repeat
display dialog "All done!"
end tell

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

dcwilkie

sorry, not sure why it did not show

reply said the script you suggested returned an error

in Mac OS X10.3.6 i pasted it into script editor and ran it and it gave
an error saying it expected end of line but found unknown kernel instead
 
Top