Internet User
Internet User

Reputation: 121

How do I write a script to open Safari with multiple specified website tabs open?

Searching so far, all I've found is open -a safari. I will keep searching trying to teach myself, but I would appreciate your guidance to direct my efforts.

Upvotes: 2

Views: 2413

Answers (1)

that other guy
that other guy

Reputation: 123730

Just add the URLs as parameters to that command:

open -a safari 'https://stackoverflow.com' 'https://stackoverflow.com/questions/48391547'

This will open Safari with two tabs, one for each URL.

Upvotes: 3

Related Questions