3 ms·
every time i open a document with preview, it insists on opening all the documents i had open before. i must be doing something wrong, and find a different work
by em-bee 5y ago
every time i open a document with preview, it insists on opening all the documents i had open before. i must be doing something wrong, and find a different workflow, maybe instead of closing the app, i need to manually close each document that i don't need anymore.
i guess it's not an issue if you use preview often and keep it running all the time, but i rarely need it since most of what i do is either terminal or browser based or uses a dedicated application.
but when i open a document i expect that document to be opened, and nothing else.
this would work a lot better if preview would put all documents in tabs so that only the document i asked for is visible while the rest are hidden in the other tabs.
- _moof 5y agoThis is an OS-level thing where apps can act more "iOS-like" by saving and restoring their state when they're closed/opened. I agree, it's annoying. There might be a way to turn it off but in the meantime you can press command-option-W to close all windows. EDIT: You can disable this globally in System Preferences, or on a per-app basis by writing to the app's defaults: defaults write com.apple.Preview NSQuitAlwaysKeepsWindows -bool false
- deleted 5y ago[deleted]
- xenadu02 5y agoThe Mac is document-centric, not app centric. The intended working model is you just open documents in Preview and close them when you're done. You don't concern yourself with whether Preview is running or not. If you Command-Q to quit Preview you are observing State Restoration - the intent there being that if the system is low on memory and the app is not visible or being used the system could quit the app then re-launch it later. Or you can reboot and upon login everything goes back to how it was. Some of this is not as transparent on macOS as it is on iOS because it was added to the Mac much much later, but even many third party apps implement it (probably because NSDocument/NSApplication provide good built-in support). Any documents open in a state-aware app that quits get re-opened when it launches again. Hold down Option to skip state restoration. This works for any app by the way: Hold Option to skip re-opening projects in Xcode or documents in Pages.
- em-bee 5y agoactually, the observed behavior makes macOS app centric. for a truly document centric system, opening a document should do exactly that and nothing more. what instead happens is that the preview app is started, and it remembers its previous state opening all the other documents it had open before. from an app-centric perspective that makes total sense. and i also approve of the concept of an app keeping its state. to make the preview app and other apps document centric, the app itself needs to become less visible. for example the function to close the app could be replaced with one to close all documents. this would offer a document centric intent behind the close action. and for those cases where i don't actually want to close those documents, but just need to move them out of the way, different mechanisms are needed. functions like hide or suspend for starters that allow the OS to actually remove the apps and documents from memory but without changing their state to being closed. work spaces are also a possible concept. another approach that preview could easily implement is to hide the documents that i didn't ask to be open at this moment. so the documents are still there, and their state is preserved, i just don't see it until i switch to that document. this would be similar to how at least firefox handles tabs. the tabs are there, but they are not loaded until i open each one of them. in the same way preview could remember all the recent documents, until i explicitly close a document just like i would close a tab. a truly document centric system needs at least proper interface design and language, but parts may also need a redesign of core concepts. for example, when opening a document, i should be able to specify what kind of activity i want to do with it. depending on the chosen activity the right app that offers that activity will be started. currently i get to choose which app i open a document in, and there is one default app, and if i want another, i either open the app first, and then tell it to open the document, or i specifically choose the app that this document should be opened with. again this looks very app centric. in a document centric system i expect that i open a document, and then all the possible actions on that document are available to me. but different actions can be provided by different applications which requires that apps interface with each other in a completely different way.
- wtallis 5y agoGenerally speaking, on macOS manually quitting an application is not part of the intended workflow. When you're done with a document, you close that document's window. The app can continue to be open in the background with zero windows, and will be closed by the OS automatically if it needs to reclaim the resources. Manually quitting the application is unnecessary micromanaging.
- em-bee 5y agowhile i agree in principal, i am quite bothered by unused applications cluttering up the dock. i use the dock to tell me which apps i am currently focusing on, so inactive apps really get in the way.