not a script guru by any stretch of the imagination but when you
select that command manually it throws up a confirm "do you really
want to do this?" message....
perhaps the script would a click item "empty" (or similar)?
Thoughts from anyone else?
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
-- The WA Macintosh User Group Mailing List --
Archives - <http://www.wamug.org.au/mailinglist/archives.shtml>
Guidelines - <http://www.wamug.org.au/mailinglist/guidelines.shtml>
Unsubscribe - <mailto:[EMAIL PROTECTED]>
WAMUG is powered by Stalker CommuniGatePro
--
~
Mark Secker Computer Support Officer
ph#6488 1855 (ECEL) <mailto:[EMAIL PROTECTED]>
University of Western Australia - CRICOS Provider No. 00126G
~
"Only he who attempts the absurd is capable of achieving the impossible."
- Miguel de Unamuno
"It takes an idiot to do cool things.... that's why it's cool"
- Haruhara Haruka (FLCL)
<http://ecel-mark.ecel.uwa.edu.au/~marksecker/index.htm> (sometimes works)