As you use your Macintosh to browse the web, your web browser begins
storing “cache” files on your computer’s hard disk drive in
order to make browsing faster. For example, if you were looking at
Ford’s web site, trying to decide what new car to buy, your browser
might cache a copy of the Ford logo on your Mac. Each time you
look at a new page, instead of asking Ford’s web server for another copy
of the Ford logo, your Mac uses the file in its cache (which it can read
much faster than it can get a new copy from Ford’s server). This
is generally a good thing.
But like any other cache files, these
Internet cache files can become corrupted. When this happens, the
web browser may crash, behave strangely, or even refuse to run at
all. In an attempt to prevent this problem, I took some time to
try to determine where the different Mac web browsers we use store their
cache files. Then I wrote the script below to automatically clear
out those caches each night.
As with all my scripts, this one was
tested with OS X 10.3.x and 10.4 and the web browsers and versions
we use at my place of employment. While I believe that this script
works as intended and that it won’t wipe out your hard drive or cause
you some other problem, I can’t warranty that. If you choose to
use this script on your Macintosh, you assume all liability and
responsibility for what happens to your computer as a result. If
the script works for you, great! If not, I’m sorry and I hope you
didn’t lose anything important – but there’s nothing I can do for
you.
This script can be executed from the command line or a cron
task.
Read more…
admin Mac Support cache, clean, clear, delete, Explorer, files, Internet, Mac, Netscape, OS, remove, Safari, script, X