Re: Script to clear Safari?
Re: Script to clear Safari?
- Subject: Re: Script to clear Safari?
- From: 2551phil <email@hidden>
- Date: Tue, 23 Feb 2016 20:56:12 +0700
1) If any Safari windows & tabs are open, close them all;
Closing tabs won’t necessarily stop them from re-opening the next time the user starts Safari, depending on whether the user has window savedStates enabled in General preferences or not, and how they launch Safari (i.e. they may need to start Safari while holding down the shift key to disable savedStates).
Also, if the user has fallen victim to a _javascript_ hijack, they may need to turn off JS before attempting to restart Safari (Warning: shameless plug to my own website = see link #1 below for instructions). 2) Clear the cookies, cache, and history.
For what purpose? Clearing history as a general maintenance method is pointless (it makes no visible impact on performance), and as security feature (to prevent others knowing what you’ve browsed) it is useless. Pinned tabs are still retained in ~/Safari/LastSession.plist, Bookmarks are still retained in Bookmarks.plist, and if you think your search and browser history is now safely deleted after doing ‘Clear History: All’, fire up TextWrangler, load ~/Library/Safari/History.db and do a “Find All’ search on the string “.com”. Surprise!
Removing Safari’s deep and nested cataloguing of your browser use is not as simple as it first appears. I wrote a couple of free apps (Warning: shameless plug to my own software = see links #2 & 3 below) that can do just that if the aim is either security or rescue from a browser hijack.
Best
Phil
Links
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden