為保護瀏覽隱私,希望 Chrome 每次啟動直接進入隱身模式。透過 AppleScript 編寫小應用程式,點擊即可啟動隱身視窗並關閉一般視窗。
do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito"
tell application "Google Chrome"
close windows
make new window with properties {mode:"incognito"}
activate
end tell

此法不修改 Chrome 本身設定,僅提供一鍵啟動隱身模式的捷徑,彈性更高。