Re: Open Safari and Script
Re: Open Safari and Script
- Subject: Re: Open Safari and Script
- From: "Nigel Garvey" <email@hidden>
- Date: Sat, 29 Dec 2007 12:18:02 +0000
I wrote on Sat, 29 Dec 2007 11:34:55 +0000:
>It seems
>more reliable to use an index reference instead:
>
> tell application "Safari"
> if (count of windows) is greater than 0 then close windows
> make new document
> set URL of document 1 to "http://www.macscripter.net/"
> end tell
Or possibly:
tell application "Safari"
if (count of windows) is greater than 0 then close windows
make new document with properties {url:"http://www.macscripter.net/"}
end tell
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden