I want to open multiple URLs with Google Chrome in a specific Profile.
I got a shell script from this forum, but I don't know how to modify it to open Multiple URLs in the same window. 'Google chrome Tab with URL' open's a new window instead.
TIA
open -na 'Google Chrome' --args --new-window --profile-directory='Profile 1' "https://mail.Google.com/"
I think that's your best bet. Don't forget that you can also store your URLs in KM variables and feed them into your shell script (lots of examples of that sort of thing on the Forum) so you aren't restricted to "hard-coded" addresses.
The problem is that you are opening a second instance of Chrome with a different profile. At best KM doesn't know which instance to to send actions to and has to guess -- more likely it will always target the first instance that was running.
You might be able to do what you originally tried if you Quit Chrome and then launch it with your chosen profile, so there's only one copy of the app running, but I'm guessing you don't want to do that.
Or you can just use a Select or Show a Menu Item action to select the profile you want to work with. If it's already open it will be brought to the front – if it's not open it will be opened.