Automatically hide sidebar in preview

I was able to get this to work on 10.11.1 by adding a new key to the Preview.app plist.

PVPDFSuppressSidebarOnOpening

You can use the defaults write command to do this in Terminal.

cd ~/Library/Containers/com.apple.Preview/Data/Library/Preferences/

defaults write com.apple.Preview PVPDFSuppressSidebarOnOpening true

Sorry, but the plain terminal command defaults write com.apple.Preview PVPDFSuppressSidebarOnOpening true did not work for me. After, Preview.app opened again showing the sidebar. I had to:

  1. open (with Xcode) the file ~/Library/Preferences/com.apple.Preview.plist ;

  2. Add a new item in Root with item name PVPDFSuppressSidebarOnOpening, item type Boolean and type value YES;

  3. Save the plist file.

After that, Preview started opening without the sidebar.