Automatic way to delete caches
Hei guys,
While discussing some problem with Apple Tech Support, that guy told me that it's a good idea to clear the caches once a month.
The caches that need to be cleaned are
Finder - MacBookPro - Users - [username] - Library - caches (delete all), cookies (delete all), saved application state (delete all)
Finder - go - computer - MacBookpro - library - caches (delete all)
Empty trash after deleting all these files.
Is any automatic way available to do this? Automator or AppleScript or a Terminal command etc.
I tried Automator. But, the process failed as the admin password is required to delete those files and I couldn't insert the password entry related "Actions".
In Terminal, I could find commands to delete the entire folder. So, if I use this here, the "Caches" folder itself will be deleted whereas, my aim is to delete the folder contents.
Regards,
Babloo
MacBook Pro, Mac OS X (10.7.5)