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 21:46:48 +0000
Brennan wrote on Sat, 29 Dec 2007 19:00:14 +0100:
>On 28/12/07 at 22:52, John Koch <email@hidden> wrote:
>
>> Can't make class document
>
>Try
>
>make new document at end
With Safari 1.0.3 in Jaguar, that has to be extended even further:
make new document at end of documents
In that version of Safari, the result's an index reference, so the name
reference problem doesn't arise. But obviously it's as well to assume
that it does, for forward compatibility.
The 'make' command also has to be extended when creating the Script
Editor document on that system:
tell application "Script Editor"
activate
make new document at end --of documents
end tell
tell application "Safari"
activate
make new document at end of documents
set URL of document 1 to "http://www.macscripter.net/"
end tell
Macscripter.net's URL, by the way, doesn't contain "www.".
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