|
|
Use OS X's trash in a Finder-like way from Terminal
Also, if a file is deleted and another file with the same name already exists in the trash, it will be overwritten. Finder tacks a number on the end...
Use OS X's trash in a Finder-like way from Terminal
Duplicates shouldn't be overwritten. The core 'mv' command from the script has a -n flag, which tells 'mv' to "not overwrite an existing file". I believe the script will just fail.
Won't fail when file exists in trash
This script will not "just fail" if there is already an identically-named file in the trash. Instead, it will rename the more-recent file (the one being trashed presently) by prepending the date. Edited on Apr 24, '10 11:08:41AM by GaelicWizard
Will not overwrite files already in trash
That's not true. This script will deliberately not overwrite an already-existing file. Instead, it will rename the more-recent file by prepending the date. Edited on Apr 24, '10 11:07:09AM by GaelicWizard
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|