News for hackers. Stuff that matters.
Re:Making macOS Behave Itself by hartator on Wednesday May 25, 2022 @03:44PM (#31509567)
Stupid question. How do you close Preview without saving any of screenshots, images, and pdfs that have been opened?
Re:Making macOS Behave Itself by fire on Wednesday May 25, 2022 @04:11PM (#31509889)
iirc command+option+w will close all open windows without actually quitting the app itself
Re:Making macOS Behave Itself by Lammy on Wednesday May 25, 2022 @03:54PM (#31509699)
Does Option + Command + Q work? Not near a Mac to try it, but that was the convention back in the Tiger days.
Re:Making macOS Behave Itself by hartator on Wednesday May 25, 2022 @04:01PM (#31509785)
Yes, this immediately quits (I think that the same as Force Quit?) but when you reopen Preview everything unfortunately reopen as well.
Re:Making macOS Behave Itself by PartiallyTyped on Wednesday May 25, 2022 @04:01PM (#31509782)
CMD+Q should work.
Re:Making macOS Behave Itself by hartator on Wednesday May 25, 2022 @04:03PM (#31509801)
You have to go through each opened document one by one and decide to save or not. Like there is no option to just mass discard.
Re:Making macOS Behave Itself by musicale on Wednesday May 25, 2022 @04:42PM (#31510258)
Option-click on a window's red close button closes all open windows/documents in a macOS app, but I don't know of a "delete all" shortcut, so (unfortunately) all unsaved documents will get a confirmation dialog in their window where you have to click the delete button.

There used to be command key shortcuts for the don't save/cancel/save (command-d/s/c iirc?) dialog buttons, but they've changed the ui to delete/save and seem to have removed the keyboard equivalents.

The right way to do it (in my opinion) would be option-click on the Delete button or command-option-D, but they don't seem to have implemented that.

Re:Making macOS Behave Itself by msbarnett on Wednesday May 25, 2022 @04:54PM (#31510408)
> There used to be command key shortcuts for the don't save/cancel/save (command-d/s/c iirc?) dialog buttons, but they've changed the ui to delete/save and seem to have removed the keyboard equivalents.

Command-d is still mapped to don't save (at least in Preview, just verified). Escape is cancel.

Re:Making macOS Behave Itself by musicale on Thursday May 26, 2022 @04:19PM (#31522903)
Indeed, esc for Cancel and return/enter for Save still work - (which I actually knew, verified yesterday, and should probably have updated my post to mention before the annoying HN edit cutoff.)

Are you running macOS Monterey? It doesn't seem to have a Don't Save option in the "Do you want to keep this new document" dialog box - it's Delete, and command-d does not work for me.

Re:Making macOS Behave Itself by hartator on Wednesday May 25, 2022 @04:26PM (#31510068)
> Out of curiosity, what's your workflow look like that you're ending up with so many "dirty" screenshots that it wants to know if it should save or not?

Yes, screenshot part of the screen, do a quick edit or highlight in Preview, and paste it to GitHub or email. I never want the screenshots to be saved to disk but end up with my Preview full of "dirty" screenshots.

Re:Making macOS Behave Itself by Tagbert on Wednesday May 25, 2022 @11:01PM (#31513904)
That’s too much work and a distraction to try to manage those files while I’m doing screenshots. Easier just to take them and move on. I have them saved to a “screenshots” folder and occasionally purge that.
Re:Making macOS Behave Itself by msbarnett on Wednesday May 25, 2022 @04:10PM (#31509877)
Out of curiosity, what's your workflow look like that you're ending up with so many "dirty" screenshots that it wants to know if it should save or not?

(AFAIK there's no mass-discard option, but I've never really thought about it before because 99% of the time Preview is showing me something that's already on disk)

Re:Making macOS Behave Itself by grishka on Wednesday May 25, 2022 @04:13PM (#31509907)
Alt-right-click the dock icon and choose "force quit" or whatever it's called in English.