Re: Finding default browser with AS
Re: Finding default browser with AS
- Subject: Re: Finding default browser with AS
- From: Jolly Roger <email@hidden>
- Date: Mon, 30 Apr 2001 08:50:01 -0500
- Replyto: email@hidden
on 4/30/01 7:21 AM, Andy Wylie (email@hidden) wrote:
>
Maybe someone knows how to read Internet prefs or has another solution but
>
this would be more reliable than File Exchange:
>
_____________________________
>
property browser : ""
>
>
if browser is "" then getBrowser()
>
>
on getBrowser()
>
open location ""
>
delay 1
>
set browser to name of (info for (path to frontmost application))
>
tell application browser to quit
>
return browser
>
end getBrowser
Did you try running this script? It gives me an error on the line:
open location ""
Anyway, it seems to me that will only work if a browser is already open.
There is indeed a way to get the actual Internet Config settings via
Applescript, which is the best solution. I don't have time to find the
scripting addition for you, but it's out there. Look for "ICSettings" or
something like that.