[Pythonmac-SIG] applescript to python examples for Address Book?
has
hengist.podd at virgin.net
Sun Aug 8 13:20:50 CEST 2004
I wrote:
>ab = app('Address Book.app')
>print zip(ab.people.name.get(), ab.people.emails.value.get())
Or if you only want folk who have one or more emails:
p = app('Address Book.app').people.filter(its.emails != [])
print zip(p.name.get(), p.emails.value.get())
Good stuff (when it works:p).
has
--
http://freespace.virgin.net/hamish.sanderson/
More information about the Pythonmac-SIG
mailing list