Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Script for private browsing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script for private browsing
Authored by: ojohns on Aug 08, '06 09:08:22PM

Thanks for the neat script. Here's a variant. I don't care much about the download folder, but I got tired of amazon greeting me warmly by name on return visits. Even in "Private Browsing", Safari keeps Cookies and (contrary to documentation) does not reliably zap them when you quit "Private Browsing". So I use this apple script to launch Safari. I pasted it into Script Editor, and then saved it as an app which I put in my dock.

-- Zaps the cookies, history, downloads, and cache files, then launches Safari
-- Sets Private Browsing
-- Also automatically dismisses the pop-up information window
on run {}
do shell script
" pre=/Users/$(whoami)/Library;
rm -rf $pre/Cookies/Cookies.plist $pre/Safari/History.plist
$pre/Safari/Downloads.plist $pre/Cache/Safari >/dev/null 2>&1;
exit 0 "
activate application "Safari"
tell application "System Events" to tell application process "Safari"
click menu item "Private Browsing" of menu 1 of menu bar item "Safari" of menu bar 1
click button "OK" of window 1
end tell
end run


[ Reply to This | # ]