Benches macOS

2

Use default browser in custom Apple Scrip…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

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 replies

Sign in or join Beachball Help to reply.

  1. 0

    Niel

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here:

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

    (44365)

  2. 0

    kelly003

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    as simple as that.

    thanks a lot.