Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help in scripting Address book



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.