Jump to content

alfred-chrome - Open URL in Google Chrome (also with specific profile)


Recommended Posts

Posted

Unfortunately no. I tried to keep this simple without configuration files and similar.

 

About the profile name, it uses whatever you see in Chrome. So if you rename it there, you should see in Alfred as well.

  • 1 month later...
  • 2 weeks later...
  • 1 year later...
  • 1 year later...
Posted

Nice workflow I use for months now. 

But .. MacOS BigSur has come and now, it does not work anymore. 

S74KcC7.png

 

I've tried to chmod +x on linked file, but nothing changes.. 

Posted
17 hours ago, Damien Cuvillier said:

Nice workflow I use for months now. 

But .. MacOS BigSur has come and now, it does not work anymore. 

S74KcC7.png

 

I've tried to chmod +x on linked file, but nothing changes.. 

Hi, @Damien Cuvillier

I'm also running macOS Big Sur.

I tried the following steps to reproduce the issue but it worked fine: 

  1. Removed the Chrome Incognito workflow
  2. Downloaded it from this Packal link 
  3. Installed it by clicking on the downloaded file
  4. Triggered the workflow using Alfred

It worked afterwards. Could you try this as well?

  • 3 months later...
Posted

For those who absolutely must to have some shortcuts to open different Chrome profiles but can't use this Workflow extension, here is a little something that is very minimal but helps me navigate through my profile.

You can create your own Alfred workflow, that triggers by an input with arguments.

Link this trigger to a "Run Script Action" object.

Configure the Script Action with the following snippet:

query=$1
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --profile-directory="Profile $query"

This will take your first argument of the commend and append it to the "Profile " word.

 

Now, I have list of profiles in my chrome that I would like to open. I simply associate them with numbers in my head (I don't have that much).

To help you find the number of the profile, or as a matter of fact, an actual identifier of the profile in case you have something different that just Profile #number

Open your Chrome profile, type in search bar "chrome://version" 

You will find the profile name and its path by:

Profile Path    /Users/<YOUR USER NAME HERE>/Library/Application Support/Google/Chrome/Profile 1

 

So this number at the end is what I swap out when switching between profiles.

Simple, quick hustle :)

 

This by no means a production ready workflow, but for those who couldn't even try out the current workflow due to the error above and need some solutions.

 

This what it looks like for me in the end

image.png.d73fd0772e355de32033324b4496687e.png

CHROME:

image.thumb.png.f076ee8a11180a9f4382448718932755.png

And SCRIPT:

image.thumb.png.9e266eb03d220009f3bf45048a7d5863.png

 

  • 2 years later...
Posted

Hi all, long time user of this workflow but now migrated onto a new machine and having some issues.

 

image.thumb.png.cc0cff39236f17a549eff57a051acc8e.png

 

I seem to be entirely unable to have Alfred 'know' the names of the profiles. 

 

Debugger is even showing:

{
      "uid": "chrome-d41d8cd98f00b204e9800998ecf8427e-24a271a69727c7e59123222dccdaa0e5",
      "title": "Open new window using profile Person 2",
      "subtitle": "Open a new window in Google Chrome using profile Person 2",
      "arg": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"  --profile-directory=\"Profile 4\"",
      "mods": {
        "alt": {
          "subtitle": "Open a new window in Google Chrome using profile Person 2 (in incognito)",
          "arg": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"  --profile-directory=\"Profile 4\" --incognito",
          "mods": {}
        }
      }
    },
    {
      "uid": "chrome-d41d8cd98f00b204e9800998ecf8427e-a3dbc3a44187d39b68c925680a1149f2",
      "title": "Open new window using profile Person 2",
      "subtitle": "Open a new window in Google Chrome using profile Person 2",
      "arg": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"  --profile-directory=\"Profile 5\"",
      "mods": {
        "alt": {
          "subtitle": "Open a new window in Google Chrome using profile Person 2 (in incognito)",
          "arg": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"  --profile-directory=\"Profile 5\" --incognito",
          "mods": {}
        }

 

You can see, the profiles are all listed as "Person 2", even though it's pointing to `--profile-directory=\"Profile 4\"`

 

Any ideas would be amazing!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...