Re: Finding default browser with AS
Re: Finding default browser with AS
- Subject: Re: Finding default browser with AS
- From: JollyRoger <email@hidden>
- Date: Tue, 01 May 2001 06:25:41 -0500
on 4/30/2001 10:24 AM, Michelle Steiner at email@hidden wrote:
>
On 4/30/01 3:55 AM, Jan Pieter Kunst <email@hidden> wrote:
>
>
> That works, thanks! I was hoping to be able to do this without launching a
>
> separate application (because that is relatively time-consuming), but if
>
> this is the only way it will have to do.
>
>
>
> But (wild idea) maybe I could do this only once, and save the browser
>
> signature in some kind of 'preference' for the script? By saving a text file
>
> with the signature somewhere, maybe, or is it somehow possible for a script
>
> to modify itself permanently? I.e., something like, on first run, find
>
> browser signature, save self with information about default browser, use
>
> that browser for subsequent runs?
>
>
Yes, if you set the variable as a property or a global, it will be
>
retained until the script is recompiled.
Chris Nebel just set me straight on something, and I wanted to let you know
that something I said yesterday was incorrect.
Michelle is right here, and I was completely wrong. You do _not_ need to
return true in the quit handler. I was thinking of Ircle scripts where you
need to return true on unload to save properties. For normal AppleScript
applets, that is not necessary. As long as it is saved as a stand-alone
applet, properties should be saved.
I apologize if I caused any confusion. My head is back on straight today.
JR