Apple Safari and URL

(imported topic written by SystemAdmin)

Hi,

I know in windows how to create fixlet that launches IE to a specific website.

Can the same be done in Safari, under the Apple OS?

thanks,

(imported comment written by SystemAdmin)

As a start, you can create a fixlet using AppleScript:

tell application "Safari"
    make new document at end of documents
    set URL of document 1 to "http://www.apple.com"
end tell

or you can create a fix let using this shell script:

#! /bin/sh
 
osascript -e 'tell application "Safari"
make new document at end of documents
set URL of document 1 to "http://www.apple.com"
end tell'

You’ll want to check that a user is currently logged in so Safari can launch, but this should get you going.

  • Aaron

(imported comment written by SystemAdmin)

Thank You Aaron,

This was exactly what I was looking for.