system prefs – Select which Functions re-open paperwork at launch

0
52


If you could find the app’s Bundle ID then you may management which apps will save their state between launches & which won’t.
Bundle IDs are often of the shape com.firm.AppName which ought to make them comparatively straightforward to determine while not having Terminal.

Preview, as an example is com.apple.Preview – that easy.
Should you look in ~/Library/Saved Utility State/ you will discover it is filled with folders with this naming scheme, every with .savedState on the finish to additional determine what that individual folder is for.

As soon as you’ve got found out your Bundle ID, then all you want is one line in Terminal to vary or verify its present standing –
defaults learn com.apple.Preview NSQuitAlwaysKeepsWindows
This may return both a 0 for ‘off’ or a 1 for ‘on’.
To vary the state sort
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false to modify off, or
defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool true to modify on.
This worth is learn at launch, so give up & relaunch to register the change.

Carried out.
Your one app will now undertake this chosen behaviour, regardless of your world setting.

Should you ever need to revert this to the worldwide setting quite than particular person, then it is advisable to delete the worth quite than simply swap it between true & false.
defaults delete com.apple.Preview NSQuitAlwaysKeepsWindows

These defaults are written to the suitable preferences .plist file in ~/Library/Preferences/ so apply to solely the present person.