Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Utilize the trash from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Utilize the trash from the Terminal
Authored by: mesa on Sep 13, '05 12:37:14PM

trash, which is a part of the osxutils package, behaves like finder but from the command line. osxutils is available via fink or
http://sourceforge.net/projects/osxutils

/Michael

---
This space intentionally left non-blank



[ Reply to This | # ]
Script does not operate as advertised.
Authored by: SeanAhern on Sep 13, '05 03:55:48PM

I just checked out the 'trash' script from that package. It does <i>not</i> operate like the Trash, only from the command line. The script merely moves the file to the ~/.Trash folder, checking to make sure the subpath names are created. But what it does not do is check to see if there is a name collision. That is, it does not check if it would be overwriting an existing file in the trash. That's a serious omission. In addition, it only uses the UNIX 'mv' command, rather than using CpMac or ditto or something else.

I would instead use the rmm script quoted above.



[ Reply to This | # ]