I want to run a command line that opens a new chrome window with another profile.
I tested the following commands:
Preconditions:
-
I have two profiles:
Profile 1
andProfile 2
-
Chrome is already running with
Profile 1
open -a "Google Chrome.app" --args --profile-directory="Profile 2"
The above command does nothing other than bringing focus to the currently running chrome with Profile 1
I also tried:
open -a "Google Chrome.app" --args --profile-directory="Profile 2" --new-window
The effect is the same.
I want to run a command line that opens a new chrome window with Profile 2
while there is already a Chrome window running with Profile 1
Best Answer
Pass the arguments to the Google Chrome's executable directly, instead of routing them via
open --args
.Set an alias to the executable inside Chrome app. (right click > show package contents)
Even append
--new-window
to the alias if that's used a lot.For more help, run
To remove alias,