24

I had to force-quit Preview (it became unresponsive after trying to open a 200Mb animated gif), but after re-starting it, some files that were open before no longer open. Instead an error box pops up saying that

The file “file.pdf” couldn’t be opened because you don’t have permission to view it.

and

To view or change permissions, select the item in the Finder and choose File > Get Info.

(how can I generate an image of that error box?).

However, the file permissions are okay, finder generated the usual preview, and acroread can open the file. I suspect that Preview has generated some lock for this file somewhere, but I'm not sure where and how. OSX 10.9.5. (copying the file in a terminal to another one and trying to open that didn't help, as did changing permissions to read-write for everyone).

34

quitting preview was enough to fix it for me.

  • 2
    Worked for me... strange bug – Shaun Jul 4 '16 at 17:58
  • Just opening preview and quitting didn't work for me. But opening and then force quitting seemed to work for some reason. – Andrew Aug 22 '16 at 9:29
  • I think preview just locks the resources and does not release it.. This solution is good :) – Nilesh Agrawal Nov 21 '16 at 6:45
  • Well, this did not help with the original problem, as stated in the problem. So, this does not answer the original question. – Walter Oct 23 '17 at 8:02
14

After searching on the net I found a solution, following mainly this suggestion, though only deleting a small sub-directory:

  1. I removed the sub-directory ~/Library/Containers/com.apple.Preview/Data/Library/Saved Application State/com.apple.Preview.savedState

  2. I quit Preview and re-started it.

You must log in to answer this question.

protected by Community Jun 9 '16 at 19:01

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .