• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re:Variable as a Property (was default browser)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Finding default browser with AS (From: JollyRoger <email@hidden>)

  • Prev by Date: Re: Fastest Alphabetizer(sorter) for Lists
  • Next by Date: Move Files to Trash on a mac OS X remote drive?
  • Previous by thread: Re: Finding default browser with AS
  • Next by thread: Re: Fastest Sort for text and numbers
  • Index(es):
    • Date
    • Thread