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?

The ellipsis (...) after Empty Cache should be a proper ellipsis (ie option-:)

You'll also need to tell Safari to click the Empty button after selecting that menu item :)

Probably easier to just quit Safari and delete the cache files from ~/Library/Caches

Have fun,
Shay
--
=========================== Shay  Telfer ================================
 Perth, Western Australia   Technomancer  Join Team Sungroper in the
 Opinions for hire              [POQ]     2005 World Solar Challenge
 [EMAIL PROTECTED]         fnord     <thttp://sungroper.asn.au/>