On or near 11/10/03 10:58 AM, Laurie A. Duncan at [EMAIL PROTECTED] observed:
> 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 > It works for me. I'm at a loss as to why it fails for you. > 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. > I've looked at Safari's script dictionary, and there is no way I can see to specify using a new tab. Sorry. -- Microsoft MVP for Entourage/OE/Word (MVPs are volunteers) Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site: <http://www.entourage.mvps.org/> AppleScripts for Outlook Express and Entourage: <http://members.thinkaccess.net/[EMAIL PROTECTED]/Scripts/> Entourage Help Pages: <http://www.entourage.mvps.org/> -- 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/>
