MacOS – Closing 128 new Preview documents without saving

macospreview

I opened 128 .png files in Preview, hoping to use it to create a PDF out of them, as I believe was possible in earlier versions using the New from clipboard trick, but apparently, on Yosemite, not any more.

Now I want to close the newly created documents, but it'll require me to click Don't Save 128 times.

Is there any way around this?

Best Answer

I'd Force-Quit it using the Apple Menu dialog, and then clear the saved state files from the storage so that Preview doesn't try to reopen those documents next time it starts.

From Finder:

  • Cmd ⌘ N
  • Cmd ⌘ Shift ⇧ G
  • Copy/paste ~/Library/Saved Application State

Delete the folder com.apple.Preview.savedState and you're set for the next start of Preview to be clean.