• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Really delete a file via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Really delete a file via AppleScript
      • From: Johnny AppleScript <email@hidden>
    • Re: Really delete a file via AppleScript
      • From: Gary Lists <email@hidden>
    • Re: Really delete a file via AppleScript
      • From: Craig Sutherland <email@hidden>
    • Re: Really delete a file via AppleScript
      • From: David Durkee <email@hidden>
    • Re: Really delete a file via AppleScript
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Really delete a file via AppleScript (From: Paul Skinner <email@hidden>)

  • Prev by Date: stupid coertion bug on dates
  • Next by Date: Re: stupid coertion bug on dates
  • Previous by thread: Re: Really delete a file via AppleScript
  • Next by thread: Re: Really delete a file via AppleScript
  • Index(es):
    • Date
    • Thread