webPostInstallCopy 355 B

123456789101112131415
  1. #!/bin/sh
  2. ditto "/private/tmp/<name>/<bundle>" "/Users/$USER/Library/Internet Plug-Ins/<bundle>"
  3. exec osascript <<EOF
  4. tell application "safari"
  5. set theURL to "$1"
  6. activate
  7. if not (document 1 exists) then
  8. make new document at beginning of documents
  9. end if
  10. tell front window
  11. set URL of document 1 to theURL
  12. end tell
  13. end tell