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


Click here to return to the '10.5: Bypass Safari's Private Browsing confirmation box' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Bypass Safari's Private Browsing confirmation box
Authored by: soumya.ray on Nov 06, '07 01:05:30PM

Using an old hint from this site, I have a scripted app in my dock that always brings up Safari in Private Browsing mode when launched. If you don't know how to create a scripted app, you may want to search for that in the archives.

The one change, however, that is needed in my script for leopard is to remove the line that clicks the 'OK' in the confirmation window:

-- 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 | # ]