Subject: Re: [Butler Talk] Butler & Chrome Users

From: Rob Griffiths <[email-masked]>
Date: Sat, 10 Dec 2016 06:53:15 -0800

On Dec 9, 2016, at 12:54 PM, Judy Blair <[email-masked]> wrote:

> Is there any way to set a Butler task to open a URL in Google Chrome, using a specific Chrome user or person?
> 
> For instance, I use multiple Chrome people/users, and I need a certain webmail URL to open while using a certain Chrome user. When I set up Butler to open a URL using Chrome, however, it just uses the default Chrome user. Does anyone have a work around for this?

Judy:

I am not a multi-profile Chrome user, but I did a bit of searching and testing, and this seems to work...

Create two (or however many Chrome profiles you have) new Butler AppleScript actions. In the Source Code section, enter this for the first one (your default Chrome profile):

do shell script "open -a 'Google Chrome' --args --profile-directory='Default'"

For the second profile, use this:

do shell script "open -a 'Google Chrome' --args --profile-directory='Profile 1'"

For a third profile, change the last bit to 'Profile 2', etc.

This seems to work for me, opening Chrome with the specified user. You could also get really fancy with the AppleScript, and have it pop up a menu letting you pick which user -- you'd then only need one Butler command. But I'll leave that as an exercise for you to pursue if you wish, as my AppleScript mojo isn't all that great.

Note: I found this solution here ... <http://superuser.com/questions/377186/how-do-i-start-chrome-using-a-specified-user-profile <http://superuser.com/questions/377186/how-do-i-start-chrome-using-a-specified-user-profile>>

Hope that helps;
-rob.

---

From: Judy Blair <[email-masked]>
Date: Fri, 9 Dec 2016 12:54:28 -0800 (PST)

Is there any way to set a Butler task to open a URL in Google Chrome, using 
a specific Chrome user or person?

For instance, I use multiple Chrome people/users, and I need a certain 
webmail URL to open while using a certain Chrome user. When I set up Butler 
to open a URL using Chrome, however, it just uses the default Chrome user. 
Does anyone have a work around for this?

Thanks!