Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

imahawki

macrumors 6502a
Original poster
Apr 26, 2011
612
8
I've never really cared before because Safari didn't really have any compelling features but with some of the new reading modes and saving articles for later, I want to try it. But I have firefox setup to clear my history on exit. I want to do the same with Safari This seems so simple to implement. What gives!!!!?
 
Private browsing doesn't work because that rejects cookies. As far as resetting, I know how to clear it etc. I don't want to manually do it. Someone should write an add-on.
 
Private browsing doesn't work because that rejects cookies. As far as resetting, I know how to clear it etc. I don't want to manually do it. Someone should write an add-on.

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"

Go to the Reset Safari panel and check the options you want, then use Alfred (or another launcher) to run this Applescript to quit Safari. Done.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.