• 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: help in scripting Address book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help in scripting Address book


  • Subject: Re: help in scripting Address book
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 26 Nov 2003 16:49:05 -0700

On Nov 26, 2003, at 2:36 PM, Gordon Beckhart wrote:

want to read the phone numbers in Applescript. How does one get the home or work or other phone numbers?

This should get you started.

tell application "Address Book"
set foo to the people
repeat with i in foo
set bar to the phones of i
if bar is not {} then
repeat with j in bar
display dialog (name of i) & return & (label of j) & ": " & (value of j)
end repeat
end if
end repeat
end tell

--Michelle

--
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." --Teddy Roosevelt
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: help in scripting Address book (From: Gordon Beckhart <email@hidden>)

  • Prev by Date: Re: set FP brightness
  • Next by Date: Re: misleading Quark picture box
  • Previous by thread: Re: help in scripting Address book
  • Next by thread: Re: help in scripting Address book
  • Index(es):
    • Date
    • Thread