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 10:44:26 -0500
- Replyto: email@hidden
on 4/30/01 10:15 AM, Andy Wylie (email@hidden) wrote:
>
>> _____________________________
>
>> 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.
>
>
>
yep compiles in Smile and runs ok AS1.3.7, what's "it" that gives you an
>
error ?
"An error of type -673 has occurred." This is in Mac OS X 10.0.1. You
don't have a "tell application" in the script, and I suspect that is why I
get the error. To what application does "open location" belong?
As to your second question - that's a question you will have to ask my
mother, and a select few others who have influenced me throughout my
lifetime. ;)
JR