r/applescript • u/KhalDrogoSings • Jun 30 '22
Open a URL in a Chrome incognito window
Hey, I've tried and searched around but can't achieve this with my limited knowledge.
tell application "Google Chrome"
activate
make new window with properties {mode:"incognito"}
open location "https://www.example.com"
end tellThis opens the incognito window, but then it opens the url in normal mode instead of incognito.
Any ideas?
thank you
1
Upvotes
1
u/2readitol Jun 30 '22
It never worked well for me. If you don't mind you can use chrome-cli to accomplish what you want easily in a reliable way.
3
u/[deleted] Jun 30 '22
[removed] — view removed comment