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


Click here to return to the '104: Secure delete items directly from the Finder' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
104: Secure delete items directly from the Finder
Authored by: LeeH on Sep 07, '05 12:03:00PM

Great idea. I wanted to get rid of the (at least to me) annoying warning dialog box. So I downloaded the workflow from the site posted by Arlo (http://www.automatorworld.com/2005/09/06/secure-delete/) which eliminated the Get selected items step and then eliminated the warning step and saved as a Finder plug-in.

It did not work! After playing around for awhile, I did get it to work but had to change the script slightly -- so the following is for anyone else that wants to eliminate all steps except secure delete (i.e. no warnings, you have already selected the items to be deleted and just want the job done)

Open Automator and you have a blank workflow space. As indicated in the original hint, choose the Automator Library item again, and drag the Run Shell Script action to the bottom of the work area. Make sure that the Shell variable is set to /bin/sh, and change the Pass Input pop-up to as arguments.

When you change the Library item to arguments, you will get a script as follows:

for f in "$@"
do
echo "$f"
done

Simply change echo to srm -rmf so the script becomes:

for f in "$@"
do
srm -rmf "$f"
done

Save it as a Plug-in to the Finder. All done. The workflow it is stored at User/Library/Workflows/Applications/Finder



[ Reply to This | # ]