Stop Google Chrome from stealing focus on opening
Open Google Chrome in the background using Terminal


Open System Preferences > Security &amp; Privacy > Privacy > Accessibility
Add Google Chrome to the list





Open Terminal and enter the command:


open -j -a "Google Chrome" 'https://www.google.com/'

Adding accessibility permissions for Chrome disables the "Hold command-Q to quit" feature and allows other apps to control the window (e.g. shell script). Using the -j option launches the app hidden as opposed to -g that is meant to prevent the app launching in the foreground.