#!/bin/bash

/usr/bin/osascript -e 'tell application "Address Book" to activate'
/usr/bin/osascript -e 'tell application "System Events" to tell application process "Address Book" to click menu item "Select All" of menu "Edit" of menu bar item "Edit" of menu bar 1'
/usr/bin/osascript -e 'tell application "System Events" to tell application process "Address Book" to click menu item "Export vCard..." of menu "File" of menu bar item "File" of menu bar 1'



