How one can open an URL with Google Chrome from command-line with a selected profile?
I’ve thus far provide you with the next however the
--args --profile-directory="Profile 22" half doesn’t appear to cross the argument to Google Chrome:
open -a 'Google Chrome' https://www.bing.com --args --profile-directory="Profile 22"
-g possibility is meant to not carry the Google Chrome window instantly to the foreground. C.f. the documentation for
-g Don't carry the appliance to the foreground.
The next does work, however I am making an attempt to keep away from utilizing particular full path for Google Chrome:
/Functions/Google Chrome.app/Contents/MacOS/Google Chrome --args --profile-directory="Profile 22" 'https://www.bing.com'