• 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: 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.

References: 
 >Re: Really delete a file via AppleScript (From: Paul Skinner <email@hidden>)
 >Re: Really delete a file via AppleScript (From: John Delacour <email@hidden>)

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