• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Open Safari and Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Open Safari and Script
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Account Mail Question
  • Next by Date: Re: Open Safari and Script
  • Previous by thread: Re: Open Safari and Script
  • Next by thread: Re: Open Safari and Script
  • Index(es):
    • Date
    • Thread