|
|
Modifying apple files considered harmful
Don't modify the Cleanup Script - things in /System are NOT guaranteed to not be deleted or changed by Software Update.
Instead, make your own startup item in /Library/StartupItems
sudo mkdir /Library/StartupItems/CacheCleaner
You may have to create /Library/StartupItems - I don't remember if OS X ships with an empty one by default or not. If you do have to create it, remember that there is not a space between Startup and Items
Create /Library/StartupItems/CacheCleaner/CacheCleaner with the following contents:
#!/bin/sh Don't forget to chmod 755 /Library/StartupItems/CacheCleaner/CacheCleaner or the startup item won't load.
Now create /Library/StartupItems/CacheCleaner/StartupParameters.plist with the following contents:
Now to clean your personal caches, you're better off using an applescript that launches during login.
Open Script Editor, and put the following lines into a new script:
Save the script somewhere, then go into the Login pane of System Preferences and add the new script to your login items.
jpb |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|