You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

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.