0

For most applications I like the OSX feature of remembering which documents were open. But it drives me nuts in Preview.

In past versions of OSX there was a simple preference that could be altered for each application: https://apple.stackexchange.com/a/177469/18486

This no longer works in Yosemite. Is there an alternative?

1

After some playing around I found a workaround, not sure if there's something better:

  1. Open Preview, close all documents, close Preview.
  2. cd ~/Library/Containers/com.apple.Preview/Data/Library/Saved\ Application\ State/com.apple.Preview.savedState
  3. chmod -w .
  4. chmod -w *

There will be similar folders for other applications.

-2

As for the "similar folders" mentioned by Dalin, there are a bunch in ~/Library/Containers; but there may be another in ~/Library itself.

cd ~/Library
rm -rf 'Saved Application State'/*   # eliminate contents
chmod 500 'Saved Application State'  # make it read-only

This blocks automatic saving for other applications in this location. You can find the other 'Saved Application State' folders as follows:

cd ~/Library/Containers
find . -name 'Saved *'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .