2
1
I need help on completing a bash script which should be able to
- Open New Window (Not tabs) in Chrome (Or chrome canary)
- Open each new window in INCOGNITO Mode
- Open the specified URL in script
My script is as:
# Open up the urls in Canary
# but in NEW_TABS not in NEW_WINDOWS
# NOT in INCOGNITO Mode either
open -a "Google Chrome Canary" http://example1.com --args --incognito
open -a "Google Chrome Canary" http://example2.com --args --incognito
open -a "Google Chrome Canary" http://example3.com --args --incognito
open -a "Google Chrome Canary" http://example4.com --args --incognito
# New incognito tabs open up but aren't opening up the urls
open -na "Google Chrome Canary" http://example1.com --args --incognito
open -na "Google Chrome Canary" http://example2.com --args --incognito
I am on OSX and using Iterm. I found it amusing not to find any solution for this kind of requirement on internet. Let me know your suggestions. Thanks.