this script wont work. not sure whats wrong.

tell application “Safari”
activate
make new document
set URL of document of first window to “http://macscripter.net
end tell

keep getting errors. im not sure whats wrong with it? any ideas?

This works for me

tell application “Safari”
activate
if not (exists document 1) then
make new document at the beginning of documents
end if
set the URL of the front document to “http://macscripter.net
delay 10
end tell

Any objection to:

open location “http://macscripter.net

?? -N

That works fine for me after I replace the smart quotes (" “) with plain ones (” ").

thats the culprit smart quotes. how can I turn them off? :confused: