Obtain data from an Address Book card

Jeremy Reichman <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <C8DCC28D.2B7B7%[email protected]>
Does anyone have any examples of how to obtain data from cards via the
Address Book API with PyObjC? I'm not finding much (at least at my skill
level) via searching.

My goal is to output a few of the fields from "my card." I'm interested in
this from the scripting perspective, not doing so in a full-fledged app. I'd
like to do it with Python, partly as a learning exercise. The little bit
I've done with PyObjC has been trying to update a script I wrote that used
the old Core Graphics bindings.

If I were doing this via a shell script, I could get information with an
osascript line like this:

$ osascript -e 'tell application "Address Book" to get the {first name, last
name, organization} of my card'
Leonardo, Flathead, GUE Tech

Thanks for any pointers you might be able to provide!

-- 
Jeremy

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.