• 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 help)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari Scripting Help (Newbie help)


  • Subject: Re: Safari Scripting Help (Newbie help)
  • From: "J. Stewart" <email@hidden>
  • Date: Sat, 29 Dec 2007 07:45:13 -0500

On 12/28/07 at 9:48 AM, Mark J. Reed <email@hidden> spake thusly:

The full script is:

open location target_URL

Not quite. That needs to be in a Safari tell block, yes?


No, it will use whatever is set as the system's default browser. If that's Safari then it opens in Safari.

If you MUST use Safari then this works -

tell application "Safari"
	make new document with properties {URL: target_URL}
end tell
--
A truly wise man never plays leapfrog with a Unicorn.
_______________________________________________
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
References: 
 >Re: Safari Scripting Help (Newbie help) (From: "Mark J. Reed" <email@hidden>)

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