• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Safari - Clear History Cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari - Clear History Cache


  • Subject: Re: Safari - Clear History Cache
  • From: Barbara Mueller <email@hidden>
  • Date: Wed, 26 Feb 2003 18:55:12 +0100

Is it possible to do the above via an Applescript, if so how? I can't find any reference to it in the dictionary (no surprise there).

Thanks in advance (though I suspect the answer will be a straight "no").

This is possible!

At least on my Mac (OSX) this script works:

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

-- Empty Cache dot dot dot!

or
click menu item "Clear History" of menu "History" of menu bar 1

This script requires OSX, System Events 1.2 and "Enable acces for assistive devices" in the PrefPane "Universal Access" enabled.

Barbara
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Safari - Clear History Cache
      • From: Steve Savery <email@hidden>
  • Prev by Date: Re: do shell script & freeeeeze!
  • Next by Date: Re: Removing leading and railing blanks
  • Previous by thread: Re: Open a Movie from AppleScript?
  • Next by thread: Re: Safari - Clear History Cache
  • Index(es):
    • Date
    • Thread