Re: Safari - Clear History Cache
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.