GardenTools & experiments

Opening a small URL set in Chrome on macOS

An earlier shell loop for launching several known destinations through the application launcher.

The original macOS shortcut put a short URL list in a shell script and opened each destination in Chrome.

nano chrome.sh
urls="
https://google.com
https://stackoverflow.com
"

for url in $urls
do
  open -a 'Google Chrome'  $url
done

Its execution steps were:

chmod +x chrome.sh
./chrome.sh

A loop over a whitespace-separated variable assumes the URLs fit that representation. The script is a convenience for a known list, not a general parser for arbitrary user input. Running it opens real browser destinations; none of its source URLs was launched as part of this migration.

← Back to the garden