Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Entourage will not sort by First Name

Entourage will not sort by First Name
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2007
Status: Offline
Reply With Quote
Apr 24, 2007, 10:40 AM
 
I just got an Intel Macbook and loving it. I was able to import all my emails no problem from Outlook to Entourage. My problem is with the contacts. They are all in there, when you open one the FirstName is in the FirstName field and the same for the last.
But for some reason, when you look at all the contacts and try to sort - it always sorts by the last name.
I imported all my contacts to Address book, and they look perfect there. So I deleted the Entourage contacts and tried re-importing the Address book ones...no luck.

Any ideas as to how I can fix this?
     
Senior User
Join Date: Oct 2004
Location: Portugal
Status: Offline
Reply With Quote
Apr 24, 2007, 01:23 PM
 
That's a bummer...

You could add the first name to one of the custom fields in Entourage and sort by that custom field
This can be done via applescript. If you can't find another way, PM me and I'll try to help you.
     
Senior User
Join Date: Oct 2004
Location: Portugal
Status: Offline
Reply With Quote
Apr 26, 2007, 06:13 AM
 
ok, here goes:

NOTICE:
This script is very basic and was done in one minute, and doesn't check if anything is present at the custom field 8, and will overwrite anything present there.
I could do a better version, but ATM this fullfills the objective.
I've tested it in my own contacts and does what it is expected to do
If it ruins your/anyones' contacts, I may not be held responsible, the script is distributed as is and you use it at your own risk.

Steps:

1. in applescript, paste the following code:

(*
sort contacts by first name
*)

tell application "Microsoft Entourage"

set allContacts to every contact
repeat with thisContact in allContacts
set myFirstName to first name of thisContact
set myLastName to last name of thisContact

set custom field eight of thisContact to myFirstName & " " & myLastName

end repeat

display dialog ("done!")

end tell
2. save it as script, you can name it: Sort contacts by firstName\cC

(the \cC part allows you to use a keyborad shortcut, in this case: Control - C )
Don't use an extension (.scpt)

3. place that script into the "Entourage Script Menu Items" folder, which resides inside the "Microsoft User Data" folder.

4. in Entourage, go to the contacts, and run the script (either by selecting it from the applescript menu, or via the shortcut); if you don't see the script in that menu, it means you didn't install it correctley, redo step 3 correctly!

5. once done, add the custom 8 field into the visible fields (this is done by doing a right-click or control-click and selecting the custom 8 from the dropdown).
Sort it by this custom 8 field.

6. that's it!
     
Fresh-Faced Recruit
Join Date: Apr 2007
Status: Offline
Reply With Quote
Apr 26, 2007, 09:14 PM
 
THIS IS AMAZING!!!

Great job, THANK YOU!
It works great.
     
Senior User
Join Date: Oct 2004
Location: Portugal
Status: Offline
Reply With Quote
Apr 27, 2007, 04:01 AM
 


If you need more "refinements" to the script, just let me know
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:22 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2