On Windows, Chrome is my primary browser.
I've developed a series of *.bat files on Windows that each open a series of tabs with specific URLs in Chrome:
@echo off
set BROWSER=chrome.exe
set WAIT_TIME=2
cd %USERPROFILE%\Desktop\bat
start %BROWSER% -new-window "https://calendar.google.com/calendar/r/month"
@ping 127.0.00.1 -n %WAIT_TIME% -w 1000 > nul
start %BROWSER% -new-tab "https://contacts.google.com/"
start %BROWSER% -new-tab "https://voice.google.com/"
start %BROWSER% -new-tab "https://hangouts.google.com"
start %BROWSER% -new-tab "https://drive.google.com"
start %BROWSER% -new-tab "https://maps.google.com"
start %BROWSER% -new-tab "https://www.youtube.com"
start %BROWSER% -new-tab "https://news.google.com"
start %BROWSER% -new-tab "https://photos.google.com"
start %BROWSER% -new-tab "https://one.google.com"
start %BROWSER% -new-tab "https://classroom.google.com"
How would I reproduce this functionality in macOS 10.15 using AppleScript?
Best Answer
As a shell script or directly in Terminal it can be done with
In AppleScript you can use