Clinton Lee Taylor wrote: > Take two ... This time I think I found something a little better ... > http://sourceforge.net/projects/wabaccess/ > > Another LGPL com lib to access Windows Address Book ... But this one > seems to work with Python ... > > Okay, so I'm asking again, if anybody (maybe Roger again ... ) Could > help with a basic working example of how to get just something listing > out of the WAB ... > > Spend a whole night, with the following code, but can only put stuff > into the WAB, not get a list of e-mail address ... >
Have you gone through the sample code at wabaccess.sourceeforge.net? Based on samples, something like this should work: for c in objSession.Containers.Count: ctr = objSession.Containers(c) for cid in ctr.Elements.Count print ctr.Elements(cid).Name print ctr.Elements(cid).Properties( PR_EMAIL_ADDRESS ) -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32