MacOS – How to create desktop shortcut for Chrome profile and run two or more profiles simultaneously

desktopdockgoogle-chromemacosshortcut

I am new to Mac, and I have my rough time (missing keys, wrong shortcuts and etc). But I don't give up. I am a JS developer with more than 10 years of Windows and Linux (Debian, Ubuntu) experience and I need another Chrome profile accessible on a demand. The easiest way for me is another icon in Dock (and on the desktop).
It is very easy in Windows – one just have to make shortcut and enter command line for chrome which looks like this:
google-chrome --profile-directory=Default

For OS X I found command line is

open -a "Google Chrome" --args --profile-directory=Default

How to make a shortcut in Dock and on Desktop using it?

Please mind the subject (question), it is important for me, that shortcuts has to allow running multiple profiles simultaneously. I didn't stated it first time, because it was obvious for me it will work that way (Linux and Windows just do it).

Best Answer

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:

    enter image description here

    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.