• 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: Michelle Steiner <email@hidden>
  • Date: Fri, 28 Dec 2007 23:47:05 -0700

On Dec 28, 2007, at 11:28 PM, John Koch wrote:

Wow don't count your chickens before they hatch....This email below looked like it would be right but it gives me an error


tell application "Script Editor"
activate
make new document
end tell

tell application "Safari"
if (count of windows) is greater than 0 then close windows
tell (make new document) to set URL to "http://www.macscripter.net/"
end tell

It doesn't give me any errors.  It would help a lot if you told us what the error was, and on what line it occurred.

-- Michelle

-- 
Help, I've caught a cult, and can't get out!

 _______________________________________________
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: John Koch <email@hidden>
References: 
 >Open Safari and Script (From: John Koch <email@hidden>)

  • Prev by Date: Re: Mail: Create New Message script broken on Leopard
  • 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