|
|
System address book via shell?
What would be _really_ nice would be a command line interface (even read-only) to the system Address Book. I know Cocoa and Carbon apps can get to this data, it would be great if it were somehow exposed so that, say, shell scripts could get this data.
System address book via shell?
The only way I can think of off hand is to have Addressbook export a vcard of all phone numbers. Then you could modify the script to parse all "FN:" and their associated telephone numbers. Since I am not a skilled programmer, it might take me a while to whip something like this up. This does not give you immediate access to the addressbook database, buyt would allow you to update the command line phone numbers based upon the current addressbook phone numbers.
System address book via shell?
Oops. I posted the shell script outside your question. Just in case you're waiting for a response to post, look below. You'll probably want to remove the -s "s" option for shells to parse the results. You may also want to add to the AppleScript to return a line-delimited list. I think I'll do that myself. :-) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.06 seconds |
|