Re: Really delete a file via AppleScript
Re: Really delete a file via AppleScript
- Subject: Re: Really delete a file via AppleScript
- From: Craig Sutherland <email@hidden>
- Date: Sun, 3 Aug 2003 13:27:06 -0500
JD,
There is an argument for ditto 'rsrc' that will preserve resource forks
and HFS meta-data.
sudo ditto -rsrc source dest
Craig
On Sunday, August 3, 2003, at 10:05 AM, John Delacour wrote:
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.
>snip<
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
>snip<
_______________________________________________
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.