My Macbook Pro under Sierra is now at the Repair Shop. I am using another MacBook Pro under Yosemite while my Sierra machine is being repaired. However, I forgot to export Contacts before taking my Sierra machine in this morning and now my Contacts data is 3 years old, which is pretty well useless to me. It should be no problem, because all the necessary info is on my Time Machine linked to Sierra. However, things are not so simple (at least for me).
How can I now get my contacts info onto the Yosemite machine from the Sierra-based Time Machine backup? It seems that none of the published solutions works.
Best Answer
Update: I have updated the script as per @user3439894’s feedback. The script should now work for most users, no matter what flavor their address book raw data is in.
You might want to look at a temporary command-line solution. It gives you a
contact <search_term>
command that you can run in Terminal.app to look up contacts.I assume your Yosemite MBP is only a temporary solution while your Sierra MBP is at the repair shop. While the Terminal command has limited functionality, it might work well enough for you to be useful while you wait for your Sierra MacBook Pro to return.
Setting up the temporary command should require not more than 10–15 minutes.
Setting up the
contact
commandOpen the Time Machine backup that contains your (Sierra-based) address book data.
In your backup, look for the folder
"${HOME}/Library/Application Support/AddressBook"
, which is the root folder for all your contact data.Restore that entire
AddressBook
folder to a temporary location, e. g.:${HOME}/SierraAddressBook
.Double check that the whole
${HOME}/SierraAddressBook
tree has the correct permissions so you can read it without an administrator password.For good measure, make a backup copy of your
${HOME}/.bash_profile
file.Open the file
${HOME}/.bash_profile
in a text editor of your choice.Temporarily append to
.bash_profile
the following lines:(Note that for some of these lines, indentation matters; try not to change indentation in any of those lines, even if it looks a bit off.)
Save your changes in
.bash_profile
.Open Terminal.app.
Open a new terminal window.
Usage
Run the command
contact
followed by your search term in the Terminal. For example:Caveats
<first_name> <last_name> <organization_name>