• 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: John Delacour <email@hidden>
  • Date: Wed, 26 Feb 2003 21:26:31 +0000
  • Mac-eudora-version: 6.0a8

At 5:24 pm +0000 26/2/03, Steve Savery wrote:

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).

It's easy to clear the stored history but not the history loaded into memory, so if you are satified to clear the history and quit, you can do this:

try
do shell script "rm ~/Library/Safari/History.plist"
end try
tell app "Safari" to quit


or you can do it with the Finder and then quit and immediately relaunch:


set f to "" & (path to "cusr") & "library:safari:history.plist"
tell app "Finder" to if exists file f then move file f to the trash
tell app "Safari" to quit
do shell script "open -a safari"

JD
_______________________________________________
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.

References: 
 >Safari - Clear History Cache (From: Steve Savery <email@hidden>)

  • Prev by Date: RE:open Applications' Dictionaries
  • Next by Date: Script for auto mounting a remote server volume?
  • Previous by thread: Safari - Clear History Cache
  • Next by thread: Re: Safari - Clear History Cache
  • Index(es):
    • Date
    • Thread