From a Mac OS command line, I'm looking for a command that will read my address book card and print my email address to stdout.

Doing it via an osascript command would be fine.

link|improve this question
feedback

1 Answer

What you are looking for is contacts.

The utility contacts gives you access to view and search all your records in the AddressBook database.

Without further ado, here are a few examples:

$ contacts -h
usage: contacts [-hHsmnlS] [-f format] [search]
      -h displays help (this)
      -H suppress header
      -s sort list
      -m show me
      -n displays note below each record
      -l loose formatting (doesn't truncate record values)
      -S strict formatting (doesn't add space between columns)
      -f accepts a format string (see man page)

displays contacts from the AddressBook database

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.