How can I open Chrome from the command line with specific pages in tabs in Mac OS X?
There is simpler way to open applications in Mac OS
open -a "Google Chrome" http://stackoverflow.com http://wikipedia.org
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
Alternatively, I have scripts that do it like this:
open -a /Applications/Google\ Chrome.app http://google.com http://stackoverflow.com