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


Click here to return to the 'A script to rm things to the trash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to rm things to the trash
Authored by: Reaper Man on Feb 28, '03 10:08:22PM

I was surprised no one commented that this is not how the Finder renames files to the trash. I recently implemented this in C++ for our own purposes.

The Finder actually renames the item in the trash before moving the file to the trash. Give it a try. Check the dates of files with the same name after sending them to the trash.

The technique in the script works because mv can rename as it moves. There is not the (easy) capability to that using traditional Mac OS file APIs.



[ Reply to This | # ]