45

From the command line in Mac OS X, how can I open Google Chrome with a specific list of URLs open in tabs, with certain ones pinned?

52

There is simpler way to open applications in Mac OS

open -a "Google Chrome" http://stackoverflow.com http://wikipedia.org
22

An alias to open Chrome:

alias chrome="/Applications/Google\\ \\Chrome.app/Contents/MacOS/Google\\ \\Chrome"

An alias to open Chrome with 2 given pages in tabs:

alias chromex="chrome --pinned-tab-count=2 http://www.google.com http://www.microsoft.com"

Open the 2 pinned pages

chromex

1
8

Alternatively, I have scripts that do it like this:

open -a /Applications/Google\ Chrome.app http://google.com http://stackoverflow.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.