Sep 01, '06 07:30:02AM • Contributed by: Anonymous
Save the file somewhere as clean.rb, and in the Terminal (Applications > Utilities), cd to the directory (e.g., cd Desktop if it's on your Desktop), and type chmod +x clean.rb. If you want, you can edit the top of the file. There are two settings: what you want to do with the file (list, move to trash, or delete), and how long it must be since you accessed it. You can then run the file by typing ./clean.rb Downloads, for example. It will clean out or list the files according to your preference. It will only remove whole directories. Hope this is useful to everyone here!
