Re: Finding default browser with AS
Re: Finding default browser with AS
- Subject: Re: Finding default browser with AS
- From: Jan Pieter Kunst <email@hidden>
- Date: Mon, 30 Apr 2001 16:34:19 +0200
David Blache (email@hidden) schreef op 30-04-2001 15:48 :
>
property gBrowserCreator : ""
>
>
on run
>
if gBrowserCreator = "" then set gBrowserCreator to ResolveBrowser()
>
display dialog "The browser creator code is: " & gBrowserCreator
>
end run
>
>
on quit
>
return true
>
end quit
>
>
on ResolveBrowser()
>
tell application "File Exchange"
>
set browser to creator type of (extension mapping "html")
>
quit
>
end tell
>
return browser
>
end ResolveBrowser
This works. As an aside, since I like to understand what I am doing, can you
explain the 'philosophy' behind this handler?
on quit
return true
end quit
What exactly is being returned as 'true'? 'True' is a property of something,
right? So what is it that is 'true' here?
Thanks,
JP