• 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 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

  • Follow-Ups:
    • Re: Open Safari and Script
      • From: Emmanuel <email@hidden>
References: 
 >Re: Open Safari and Script (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: Open Safari and Script
  • Next by Date: Re: Safari Scripting Help (Newbie help)
  • Previous by thread: Re: Open Safari and Script
  • Next by thread: Re: Open Safari and Script
  • Index(es):
    • Date
    • Thread