How to create desktop shortcut for Chrome profile and run two or more profiles simultaneously?
Since there are several possible answers, I will introduce a more exotic one:
Download and install Platypus
-
Create a file chromedefault.sh in ~/Documents/scripts/ with the content:
#!/bin/bash open -a "Google Chrome" --args --profile-directory=Default
-
Open Platypus with the following settings:
and create a new "app" ChromeDefault.
-
For a second app with the profile Other use another script chromeother.sh with appropriate changes:
#!/bin/bash open -a "Google Chrome" --args --profile-directory=Other
and call it ChromeOther.
- Put both apps in the /Applications folder and create as many symlinks or aliases as needed.
Open Script Editor from /Application/Utilities >> create a new doc >> paste following:
do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --profile-directory=Profile\\ 3 > /dev/null 2>&1 &"
FYI:
\\
contains a space (the first back slash escapes the second back slash which escapes the space!);
and user profile ../Chrome/Profile 3
will be --profile-directory=Profile\\ 3
in the code, ../Chrome/Profile 2
will be --profile-directory=Profile\\ 2
, ../Chrome/Default
will be --profile-directory=Default
Try to run it and save it if it works.