launchSafari 269 B

12345678910111213
  1. #!/bin/bash
  2. exec osascript <<EOF
  3. tell application "safari"
  4. set theURL to "$1"
  5. activate
  6. if not (document 1 exists) then
  7. make new document at beginning of documents
  8. end if
  9. tell front window
  10. set URL of document 1 to theURL
  11. end tell
  12. end tell