Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been trying to open Google Chrome from command line but with no luck! I have tried How do I start Chrome using a specified "user profile"?

My goal is to open Google Chrome with a specific profile such as "profile 1", "profile 2", or "Default" from the command line, using bash to be specific, on my Mac.

UPDATE: 6/3/14 Got this to work BUT only works when opening chrome for the first time

open -a Google\ Chrome --args --"profile-directory"="Profile 1"

So How do you get --args to be accepted AFTER google chrome as already been launched??

share|improve this question
    
What parts of the linked question did you try and what didn't work about them? – Jason Aller May 28 '14 at 4:26
    
'open -a "Google Chrome" --args --profile-directory=Default' Which in the same thread says this no longer works as of Nov 2014 Also tried 'com.google.Chrome --args --profile-directory=Default' After following his comment, tried it with it it hanging on that exact line, no erros, no chrome opening – gradedcatfood May 28 '14 at 4:32
up vote 0 down vote accepted

You could try the following:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --profile-directory=Default

Referred from this answer.

share|improve this answer
    
That was a thread i opened on stack overflow and they sent me here. that didn't work. --args --directory-profile="PROFILE_WANTED" Dosnt work for me :/ – gradedcatfood May 31 '14 at 2:45

Try: open -a "Google Chrome" --args --profile-directory=<your profile name> Works every time for me.

share|improve this answer

You must log in to answer this question.

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