我不确定这是否是我遇到的相同问题,但是当我尝试打开任何文件时,TextEdit(而不是其他任何应用程序)时不时地开始显示这样的对话框:
无法打开文档“ test.txt”。您没有权限。
要查看或更改权限,请在Finder中选择项目,然后选择“文件”>“获取信息”。
在中有这样的消息system.log
:
9/13/12 10:41:42.952 PM sandboxd[21081]: ([357]) TextEdit(357) deny file-read-data /Users/lauri/Desktop/test.txt
9/13/12 10:41:55.118 PM TextEdit[357]: NSFileVersion tried to tried to add a new generation and failed. Versioned file URL: file://localhost/Users/lauri/Notes/test.txt, contents URL: file://localhost/Users/lauri/Notes/test.txt.sb-de6477ff-BhVNrq, error: Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
9/13/12 10:41:55.118 PM TextEdit[357]: NSDocument failed to preserve the old version of a document. Here's the error:
Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
9/13/12 10:41:55.119 PM TextEdit[357]: <Document: 0x7f971d00a510>: An error occurred while attempting to preserve the backup file at file://localhost/Users/lauri/Notes/test.txt.sb-de6477ff-BhVNrq: Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
退出并重新打开TextEdit之后,我能够正常打开文件。
我将TextEdit替换为TextEditPlus后,我再也没有看到这些对话框,它基本上是TextEdit的非沙盒化分支。