Skip to main content
added 122 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

This Terminal command should accomplish what you are looking for.

osascript -e 'tell application "Safari" to activate' -e 'tell application "Safari" to tell window 1 to set URL of (make new tab) to "https://www.google.com"' -e 'tell application "Safari" to tell window 1 to set current tab to last tab'

This Terminal command should accomplish what you are looking for.

osascript -e 'tell application "Safari" to tell window 1 to set URL of (make new tab) to "https://www.google.com"'

This Terminal command should accomplish what you are looking for.

osascript -e 'tell application "Safari" to activate' -e 'tell application "Safari" to tell window 1 to set URL of (make new tab) to "https://www.google.com"' -e 'tell application "Safari" to tell window 1 to set current tab to last tab'
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

This Terminal command should accomplish what you are looking for.

osascript -e 'tell application "Safari" to tell window 1 to set URL of (make new tab) to "https://www.google.com"'