• 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: Safari Scripting Help (Newbie stuff) Complete!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari Scripting Help (Newbie stuff) Complete!


  • Subject: Re: Safari Scripting Help (Newbie stuff) Complete!
  • From: Peter Bunn <email@hidden>
  • Date: Fri, 28 Dec 2007 12:48:01 -0600

Nope...

No one's got the Safari part quite write yet...

tell application "Safari"
	activate
	try
		set _exists to document 1
		tell front document
			set URL to "http://www.google.com";
		end tell
	on error
		make new document
		tell front document
			set URL to "http://www.google.com";
		end tell
	end try
end tell

--

Peter B.

-----



 _______________________________________________
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: Safari Scripting Help (Newbie stuff) Complete!
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Aperture problem
  • Next by Date: Script doesn't work in Leopard anymore...
  • Previous by thread: Re: Safari Scripting Help (Newbie stuff) Complete!
  • Next by thread: Re: Safari Scripting Help (Newbie stuff) Complete!
  • Index(es):
    • Date
    • Thread