[Pyobjc-dev] Obtain data from an Address Book card
Brought to you by:
ronaldoussoren
From: Jeremy R. <ja...@ja...> - 2010-10-14 18:20:02
|
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 |