Q: Automatically removing trash 5 days old
Hi
I did a secure empty trash yesterday which I have not done in a few years and there were over 1.5 million files to permanently erase. This is dangerous to keep this much trash and it takes way too long to clean up. I would prefer regular maintenance . . . to securly and automatically empty the trash regularly and still maintain the benefit being able to prevent accidental deletion of recent work. The requirement therefore would be to perhaps during off hours, once a day or upon startup automtically secure empty trash only items that have aged in the trash at least x days.
Can this be done quickly and simply with applescript or a cron job?
Posted on Jul 12, 2011 12:58 AM
Thanks to twtwtw for answering my question in another thread, to get this plist to work, you must add:
<key>EnableGlobbing</key> <true/>
after <dict> and before <key>Label</key>
and also replace $HOME/.Trash with the full path (i.e. /Users/YourName/.Trash)
Posted on Jul 15, 2011 12:01 PM