Reset Safari on Quit

Discussion in 'Mac Apps and Mac App Store' started by krayziekray, May 6, 2010.

  1. krayziekray macrumors 6502

    Joined:
    Sep 24, 2008
    Location:
    127.0.0.1
    #1
    Hi, I don't like having cookies, history and download history in my browser, so is there a way of resetting Safari as it quits (so i don't have to reset before I quit) similar to the feature available in Firefox?

    Thanks in advance.

    :apple: KrayzieKray :apple:
     
  2. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #2
    AppleScript?
    Automator?

    A setting in Safari? I don't think so.
     
  3. Josias macrumors 68000

    Josias

    Joined:
    Mar 10, 2006
    #3
    If you're just browsing too much porn, I heard Chrome has a "stealth" mode :p
     
  4. slpdLoad macrumors 6502a

    slpdLoad

    Joined:
    Jun 10, 2009
    #4
    Turn on Private Browsing from the Safari menu. Back and Forward buttons will still work during your session, but everything else will be blown away.

    You can also just log into a guest account whenever to need to browse without leaving a trail, but still have access to your history and a few other items during your session.
     
  5. Sedulous macrumors 68010

    Sedulous

    Joined:
    Dec 10, 2002
    #5
    ... not entirely true. User/Preferences/Macromedia/Flash Player/ ... stores stuff regardless of privacy settings. There are probably other hidden caches elsewhere in the /private/var/caches folder. Just a heads up for the ultra security conscious.
     
  6. slpdLoad macrumors 6502a

    slpdLoad

    Joined:
    Jun 10, 2009
    #6
    Good point. This would be a good reason to enable and use a Guest account for when you really need privacy.
     
  7. krayziekray thread starter macrumors 6502

    Joined:
    Sep 24, 2008
    Location:
    127.0.0.1
    #7
    I knew this comment was coming (no pun intended :eek:) .. but seriously, I just don't like having my history or cookies stored ... nothing to do with dodgy sites :)

    Thanks, I'll look into this.
     
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    Code:
    tell application "Safari" to activate
    tell application "System Events"
    	tell application process "Safari"
    		click menu item "Reset Safari…" of menu "Safari" of menu bar 1
    		try
    			click button "Reset" of window 1
    		end try
    	end tell
    end tell
    quit application "Safari"
    Click on Safari menu then Reset Safari... and check off whichever options you want. Then run the above Applescript and it will reset Safari and it will quit Safari.

    To get rid of saved Flash junk, install Safari Adblocker. It has an option to delete Flash filed when quitting Safari.

    http://www.macupdate.com/info.php/id/32851/safari-adblocker
     
  9. mstrze macrumors 68000

    Joined:
    Nov 6, 2009
    #9
    Running Safari in "Private Browsing" mode will accomplish what you want. I can't recall exactly, but there may be a key-combination to accomplish this.

    BUT...I think you may be missing out on a lot of the benefits of retaining this information, such as being able to type only a few letters of a URL and having all of the recently visited options pop-up for you. Or not having to re-enter locational or preferential information into frequently visited sites. Or having your recently visited site pop-up and get 'populated' on the 'top sites' page....etc.

    If it's really NOT a security issue for you, that is.
     
  10. Josias macrumors 68000

    Josias

    Joined:
    Mar 10, 2006
    #10
    I read you loud and clear ;) I don't like having history or cookies around from all those dodgy websites I visit that aren't porn!
     

Share This Page