On 23/11/2004, at 10:24 AM, Eugene wrote:
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
Why not just run Safari Enhancer (VersionTracker of course)? This lets
you enable the Debug menu, which gives you an entry to Safari's Caches
window as well as a lot of other useful stuff.
This is a wheel that doesn't need re-inventing.
--
Peter Hinchliffe Apwin Computer Services
FileMaker Pro Solutions Developer
Perth, Western Australia
Phone (618) 9332 6482 Fax (618) 9332 0913
--------------------------------------------------------------------
Mac because I prefer it -- Windows because I have to.