Inspired by Create React App
This script is checking in every chrome window if there's a tab with the URL gived in params:
- If there's one: It opens chrome in first-ground and show the good chrome window with the good tab
- If there's multiples: Same behavior but it use the first tab found
- If there's not: It launch chrome (if it's not open) and create a new tab with the given URL
osascript openChrome.scpt YOUR_FORMATTED_URL