Eugene: 

-- This is not directly along the lines you need, but possibly could be an 
alternative.  Some years ago someone in WAMUG said that they set aside an area 
of memory as a RAM Disk and nominated that as their browser cache area. I use 
the technique and have found it effective.

-- It means that when the cache fills up, most applications will automatically 
clear it for the new stuff. Also, if you close down, the RAM Disk is emptied. 
No space is used on your hard disk, and because the cache is actually in 
memory, accessing recently-cached stuff is very fast. Maybe this will help.

David Noel / 2004 Nov 23

==============================
Eugene wrote:
> 
> Hi all,
> 
> Students in my school are limited with their workspace size. Being an
> avid, all things Apple, person I encourage them to use Safari over
> Explorer but unfortunately Safari generates extremely large cache files
> where as Explorer can have its cache file set to a certain size.
> Besides using the 'Empty Cache' under the Safari menu is there any way
> of setting a maximum in Safari or at the very least is there a script
> that will automatically delete the cache on log off?
> 
>                        regards
>                        Eugene
> 
Subject: 
        empty cache
   Date: 
        Tue, 23 Nov 2004 10:24:52 +0800
   From: 
        Eugene <[EMAIL PROTECTED]>
     To: 
        "WAMUG Mailing List" <[email protected]>


Hi all,

With respect to my previous posting regarding emptying Safari's Cache 
automatically. I have tried a script (found on the internet) that 
invokes the 'empty cache' option on Safari. I was going to put it as an 
application in the logout folder in the student's workspace. It seems 
to read well but comes up with an error. Here is the script:

tell application "Safari"
        activate
        tell application "System Events"
                tell process "Safari"
                        click menu item "Empty Cache..." of menu "Safari" of 
menu bar 1
                end tell
        end tell
end tell

However it returns the error:

System Events got an error
NSReceiverEvaluationScriptError 4

A search on the internet reveals the error stating "the object doesn’t 
support the command that was sent to it"

Can any one put me on the right track?

                       regards
                       Eugene 

=============================================================
From David Noel, Tree Crops Centre, Nut & Tree Crop Consultants <[EMAIL 
PROTECTED]>. Snail Mail: PO Box 27, Subiaco, WA 6008, Australia. Phone 08-9381 
7341, Fax 08-9381 2607 (International: +61-8-9381 2607). Web Sites: 
http://www.aoi.com.au.
------------------------------------------------------------