• 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: Script to clear Safari?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to clear Safari?


  • Subject: Re: Script to clear Safari?
  • From: 2551phil <email@hidden>
  • Date: Tue, 23 Feb 2016 20:56:12 +0700


On 23 Feb 2016, at 00:14, email@hidden wrote:

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

#1: http://applehelpwriter.com/2015/12/10/how-to-recover-safari-from-a-browser-hijack/

#2: http://sqwarq.com/appfixer/

#3: http://sqwarq.com/detectx/ 

 






 _______________________________________________
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

References: 
 >Script to clear Safari? (From: email@hidden)

  • Prev by Date: LaunchServices and Applescript
  • Next by Date: Re: Problem saving a message in Outlook 2011
  • Previous by thread: Re: Script to clear Safari?
  • Next by thread: Re: Script to clear Safari?
  • Index(es):
    • Date
    • Thread