Re: The Need for Speed: Finding Entourage contacts by display name or nickname
Re: The Need for Speed: Finding Entourage contacts by display name or nickname
- Subject: Re: The Need for Speed: Finding Entourage contacts by display name or nickname
- From: "Stephen Swift (aka Burnum)" <email@hidden>
- Date: Fri, 22 Jun 2001 12:38:51 -0400
At 6/22/01 11:11 AM, Jolly Roger (email@hidden) Wrote:
>
The following script searches through the Entourage contact list looking for
>
a contact that has the display name or nickname specified. This is
>
dreadfully slow in comparison to the built-in Entourage "find" utility,
>
which only searches for email addresses.
This script just returns True or False. But I suppose you could use that.
It's fairly fast.
tell application "Microsoft Entourage"
set theList to name of every contact
set TorF to theList contains "Stephen Swift"
end tell
TorF
But that doesn't give you the id of the contact. This does:
tell application "Microsoft Entourage"
set theList to name of every contact
repeat with c from 1 to (number of items in theList)
if item c of theList = "Stephen Swift" then
set foundContact to contact c
exit repeat
end if
end repeat
end tell
FoundContact
But I'm not sure how faster that really is.
Stephen Swift ?' The Burnum Man
email@hidden
-----------------------------------------------
"The Byte Shop order was the biggest single episode in the company's
history. Nothing in subsequent years was so great and so unexpected."
-Steve Wozniak