Is there a way to make an app quit when I close all its windows? For example, I have a pdf document open on Preview and when I close the document Preview is still open. When I click on it, the file browser thing comes up and asks me to open a file. Instead of that, I want it to be like when I close all my documents in Preview, the app quits. This happens for all apple and third-party software. Its the most annoying thing ever and I am willing to do anything to fix it.