Re:Variable as a Property (was default browser)
Re:Variable as a Property (was default browser)
- Subject: Re:Variable as a Property (was default browser)
- From: Andy Wylie <email@hidden>
- Date: Wed, 02 May 2001 13:53:28 +1200
Tue, 01 May 2001 06:25:41 -0500 JollyRoger wrote:
>
> 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.
As a newerbie I believed only applets and not compiled scripts would retain
variables as properties outside the editor but was delighted to discover it
depends on where they're run from. I posted on this subject seeking insight
awhile back but received no response, my experience of variable as a
property in compiled scripts is:
OSA Menu, CM Script, Smile and Applet (as master) all work
Apple Menu and Finderpop don't
_____________________________ Andy