Re: Really delete a file via AppleScript
Re: Really delete a file via AppleScript
- Subject: Re: Really delete a file via AppleScript
- From: John Delacour <email@hidden>
- Date: Sun, 3 Aug 2003 16:05:50 +0100
At 8:48 am -0400 3/8/03, Paul Skinner wrote:
>
It's rude to empty people's trash without asking.
I might mention, since it's painfully topical for me at this moment, that it's also extremely rude to remove a whole /Users directory to /.Trashes/501, in other words to wipe out say 10 years' worth of personal stuff.
A certain program did just that for me about an hour ago and you can imagine roughly how I felt about that.
If I had panicked, that would have been that. If I had restarted the machine, I would have lost EVERYTHING.
I made a lucky guess and put into practice the tiny bit of UNIX I know. First I did a find in the Terminal looking for a unique filename that I knew I'd lost in the conflagration. This put me onto /.Trashes/501/ and there, sure enough was /jd/ with all its contents.
I then created a folder "Rescued" on my newly wiped out Desktop and typed
sudo ditto jd ~/Desktop/Rescued
That's not the end of it. None of the files moved to .Trashes any longer has a resource fork. That is toasted in the move, so my careful use of ditto to duplicate the files was in vain.
How much I've lost for ever, I haven't yet dared to investigate. At least I've recovered all 350 Mb of mail, even if all the toc resources are up in smoke.
Be warned!
JD
.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.