Re: Is Image Disk Trash Empty?
Re: Is Image Disk Trash Empty?
- Subject: Re: Is Image Disk Trash Empty?
- From: Christopher Stone <email@hidden>
- Date: Tue, 25 Jan 2011 17:40:07 -0600
On Jan 25, 2011, at 12:13, Luther Fuller wrote: I spoke too soon. The last line, above, always returns ... ls: :Permission denied because .Trashes folder permission is always set to "Write only (Drop Box)". (I had forgotten that I had changed permission on my test disk.) Is there any way to get around this problem?
______________________________________________________________________
Hey Luther,
I had to jump through some hoops to get here, but I did finally:
First I mounted a FireWire disk. Second I duplicated a file and trashed it. Third I used Find Any File to search the disk with elevated permissions for the trashed file's name.
(Option-Click on the 'Find' button to elevate permissions.)
File Buddy will also find it with ease, but you have to enable admin-access.
Then I fired up the Terminal:
sudo find /Volumes/Hammer/.Trashes/ -type f sudo ls -lR /Volumes/Hammer/.Trashes/
I think you can use administrator privileges in a 'do shell script' to automate that:
A: Use the administrator privileges, user name and password parameters like this:
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden