On 11/10/03 1:41 PM, The Dept. of Homeland Security picked up the following
electronic transmission from [EMAIL PROTECTED]:

> Meanwhile:
> 
> Try replacing "open location s" with this:
> 
> tell application "Safari"
>   activate
>   tell document 1 to set URL to s
> end tell

The above works, but opens the google search in whatever tab or window is
active in Safari. That is a bummer, since I always have multiple tabs open
and I hate when they get overwritten by a new page.
 
> This will obviously make use of Safari, always, rather than opening your
> default browser. It works, however. To make it use a new window:
> 
> tell application "Safari"
>   activate
>   make new document
>   tell document 1 to set URL to s
> end tell

This fails with an NSArgumentsWrongScriptError

What would the trick be to make it use a new TAB, rather than new window. My
safari prefs are set to open all clicked urls in a new tab, but the first
replacement you offer above overrides that.

It's a handy script when it works :)

Laurie

-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to