Paul
Sat Nov 27 18:55:19 CST 2004
It was missing a 'get' needed in this case.
Here:
tell application "Microsoft Entourage"
set allContacts to (every contact)
repeat with theContact in allContacts
tell theContact to set its nickname to (get its name)
end repeat
beep
activate
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.
> From: Xu Han <xu@hotmail.co.uk>
> Newsgroups: microsoft.public.mac.office.entourage
> Date: Sun, 28 Nov 2004 00:36:12 +0000
> Subject: Re: Mac entourage address book arrangement question
>
> Sorry, the script seems not working, I am using entourage 2004.
>
> Thx again
>
>
> On 28/11/04 12:21 am, in article BDCECA88.B34%xu@hotmail.co.uk, "Xu Han"
> <xu@hotmail.co.uk> wrote:
>
>> Thanks, and that's a really good idea
>>
>>
>> On 28/11/04 12:00 am, in article BDCE551F.7C512%berkowit@spoof_silcom.com,
>> "Paul Berkowitz" <berkowit@spoof_silcom.com> wrote:
>>
>>> On 11/27/04 2:46 PM, in article BDCEB458.730%xu@hotmail.co.uk, "Xu Han"
>>> <xu@hotmail.co.uk> wrote:
>>>
>>>> I don't know if anyone has asked this question, I have a question about
>>>> arranging my address book, basically, I want the address book arrange by
>>>> first name and it seems entourage arrange by last name on default.
>>>
>>> Copy the first name, or whole name, into the nickname field and sort by
>>> Nickname. You can do it for existing contacts by running a script:
>>>
>>> tell application "Microsoft Entourage"
>>> repeat with theContact in (every contact)
>>> tell theContact to set nickname to its name
>>> end repeat
>>> beep
>>> activate
>>> display dialog "All done!"
>>> end tell
>>>
>>> This version puts the whole name into the nickname field. Then go to
>>> View/Columns and make sure you have Nickname field, and click its header to
>>> sort by that field. You can even drag it over to the left. You could use a
>>> custom field if you prefer.
>>
>