Opening Chrome via Terminal window using command-line interface on Mac OS
Here is a quick post about opening Chrome browser in terminal window using command-line. You may be wondering why you need this. This is very useful if you want to open a bunch of tabs in Chrome and pre-load them with your favorite URLs. Yes, this is for the Mac OS techies out there.
This is what you need to type in the terminal window:
/usr/bin/open -n "/Applications/Google Chrome.app" --args 'http://www.google.com'
I am not sure if you need the same thing but I am often have a need to pre-load a YouTube video to a specific time within that video. Here is how you can do this:
Let’s assume that the link for the YouTube video is: https://www.youtube.com/watch?v=49YvbcqjEiA
In order to position the video to a specific time position, you just need to append the following to that URL: &t=1m44s
Then you get the following links: https://www.youtube.com/watch?v=49YvbcqjEiA&t=1m44s
This will position the video to 1 minute and 44 seconds.
Here is how you would do it in command-line in the Terminal window:
/usr/bin/open -n "/Applications/Google Chrome.app" --args 'https://www.youtube.com/watch?v=49YvbcqjEiA&t=1m44s'
Thank you for reading.