The folder “.Trashes” can’t be opened because you don’t have permission to see its contents.

I cleaned out my hard drive right before upgrading to 10.9.2 and now I discovered I was a bit too heavy with the spring cleaning. I want to restore my iphoto library from the trash on my external hard drive but when I try and open it ( first I un-hid it ) I get the error


The folder “.Trashes” can’t be opened because you don’t have permission to see its contents.


So how do I get permission?

iMac, OS X Mavericks (10.9.2)

Posted on Apr 23, 2014 9:30 PM

Reply
11 replies

Apr 25, 2014 7:51 AM in response to rocketmom2

Open the AppleScript Editor and run the following:


tell application "Finder" to quit

if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then

do shell script "defaults write com.apple.finder AppleShowAllFiles 0"

else

do shell script "defaults write com.apple.finder AppleShowAllFiles 1"

end if

delay 2

tell application "Finder" to run


Select the .Trashes folder in the Finder, choose Get Info from the File menu, give yourself read and write access in the Sharing & Permissions section of the window, repeat this process with the 501 folder if needed, move the library out, and run the script again.


(105513)

Apr 23, 2014 9:35 PM in response to rocketmom2

Instead of opening the folder itself, choose Go to Folder from the Finder's Go menu and provide .Trashes/501/ as the path. If you get an error message, increment the number by 1 until you find the right number.


If you don't want to repeatedly try different ones, open the AppleScript Editor in the /Applications/Utilities/ folder and run:


do shell script "id -u"


to reveal the correct number instantly.


(105437)

Apr 24, 2014 10:21 PM in response to Niel

oops, good catch, I was using the terminal. Anyway, It output:


501


So I tried it in the go to folder .Trashes/501/ and it said:


The folder can't be found.


I know it is there because when I Get Info on the drive it shown the drive as almost full, but there are only a few things in it besids the huge .trashes folder. I wonder if it might be stuck because I changed the name of the computer when I did the fresh install of the OS, so the folder is tied to "another" computer?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

The folder “.Trashes” can’t be opened because you don’t have permission to see its contents.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.