Use default browser in custom Apple Script?

I have the following simple Apple Script but I'd like the default browser to open the URL and not specifically Safari. Any ideas?

Thanks!

*tell application "Safari"*
activate
*do JavaScript "window.open('http://www.google.com')" in document 1*
*end tell*

2.16GHz Intel Core 2 Dui iMac, Mac OS X (10.4.11)

Posted on Jun 8, 2009 7:36 PM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Jun 8, 2009 7:42 PM

Here:

open location "http://www.google.com"

(44365)
2 replies
Sort By: 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Use default browser in custom Apple Script?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.