Re: help in scripting Address book
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.