|
|
This is a script will act like a Neutron Bomb on any folder you drop on it. Because of this I have save it as a script... YOU will have to save it as an app in order to use it. BE VERY CAREFUL!!! Drop a folder on the app and it will recursively go into that folder and all forders within it moving all your files to the trash. This is useful for duplicating a folder structure without populating it with files.[download]
on open dropFolder set authenticFolder to (item 1 of dropFolder) dumpFiles(authenticFolder) end open dumpFiles(item 1 of dropFolder) on dumpFiles(whatsPassed) tell application "Finder" delete every file of whatsPassed set folderContents to (every item of whatsPassed) repeat with anItem in folderContents my dumpFiles(anItem) end repeat end tell end dumpFiles
Posted on: Tuesday, January 01st 2013 - 12:00 AM |
|