13

I am working on multiple screens.
when I intend to open a new chrome window(not a tab),I have to press 'CMD+Tab' to shift to the current and press 'Ctrl+N'.

If input command

open https://apple.stackexchange.com

A new tab created not a new window.

18
open -na "Google Chrome" --args --new-window "https://georgegarside.com"

-n opens a new instance of an application. Google Chrome detects this and remedies the situation by closing the new instance and passing the tab’s location to the first instance, but this is necessary to force arguments to be read.
--args indicates what's to follow are arguments to be passed to Google Chrome, not open.
--new-window is a Google Chrome argument to force a new window to be created.

| improve this answer | |
  • fantastic blog georgegarside.com – Calculus Nov 16 '17 at 1:02
  • what's 'collapses' meaning here? – Calculus Nov 16 '17 at 7:14
  • @JawSaw I’ve replaced ‘collapses’ with a description of what happens, let me know if more help would be useful – grg Feb 22 '19 at 15:18
  • Thanks for this! For me it was important to make sure I had the http protocol in the url, otherwise it would just be a new blank tab/window. (just in case anyone else tries what I tried, which was just like dev.domain.com) – jnotelddim Jan 14 at 22:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .