• 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
Re: Address Book comparison
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book comparison


  • Subject: Re: Address Book comparison
  • From: John M <email@hidden>
  • Date: Mon, 4 Jul 2005 22:42:21 +0100

Hi Patrick,

As email is not a property if people in Address Book this script looks in contact's vCards. This leaves the possibility that the email address searched for may be in a different field from the email field.

--
set theEmail to text returned of (display dialog "Enter email address" default answer "email@hidden")
tell application "Address Book" to set theNames to name of every person whose vcard contains theEmail
if theNames is {} then
display dialog theEmail & " is not in Address Book"
else
display dialog (theNames as string) & " contains " & theEmail
end if
--


John M


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Capturing parts of text string
  • Next by Date: Re: Capturing parts of text string
  • Previous by thread: Re: Address Book comparison
  • Next by thread: Please comment my thoughts -- Need help with application for controlling Time attendance...
  • Index(es):
    • Date
    • Thread