• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
The Need for Speed: Finding Entourage contacts by display name or nickname
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The Need for Speed: Finding Entourage contacts by display name or nickname


  • Subject: The Need for Speed: Finding Entourage contacts by display name or nickname
  • From: Jolly Roger <email@hidden>
  • Date: Fri, 22 Jun 2001 10:11:37 -0500

Hi folks,

Me again with another silly Entourage question... =)

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.

Anyone have any suggestions on what I might do to speed this up?

-- start script
my FindContactByDisplayName("JollyRoger")

on FindContactByDisplayName(displayName)
set startTime to (the ticks) -- Jon's Commands

set foundContact to {}
tell application "Microsoft Entourage"
repeat with c from 1 to the count of the contacts
if (displayName = (contact c's first name & " " & contact c's
last name)) or (displayName = contact c's nickname) then
set foundContact to contact c
exit repeat
end if
end repeat
end tell

-- uses Jon's Commands
log ("elapsed time: " & ((the ticks) - startTime & " ticks"))

return foundContact
end FindContactByDisplayName
-- end script

JR


  • Follow-Ups:
    • Re: The Need for Speed: Finding Entourage contacts by display name or nickname
      • From: Paul Berkowitz <email@hidden>
    • Re: The Need for Speed: Finding Entourage contacts by display name or nickname
      • From: Paul Berkowitz <email@hidden>
    • Re: The Need for Speed: Finding Entourage contacts by display name or nickname
      • From: "Stephen Swift (aka Burnum)" <email@hidden>
References: 
 >Re: Creating Entourage contacts (revisited) (From: Shane Stanley <email@hidden>)

  • Prev by Date: What the "tell" is going on?
  • Next by Date: Re: info on FaceSpan
  • Previous by thread: Re: Creating Entourage contacts (revisited)
  • Next by thread: Re: The Need for Speed: Finding Entourage contacts by display name or nickname
  • Index(es):
    • Date
    • Thread