• 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: read stored variables in run only script application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read stored variables in run only script application


  • Subject: Re: read stored variables in run only script application
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 14 Feb 2011 15:11:20 -0600

On Feb 14, 2011, at 3:03 PM, Nigel Garvey wrote:

> Hudson Barton wrote on Sun, 13 Feb 2011 20:55:20 -0500:
>
>> I would like to null out the values of variables as the script come to an
>> end so they cannot be read by an intruder (set privatevariable to ""), but
>> certain types of UI routines prevent me from doing it.  For example,
>> "choose folder/file" has a Cancel button that I can't deactivate, and if
>> the user hits that button, the script ends while leaving the variable
>> un-erased.  Suggestions?
>
> Use local variables.

That's right! Never modify a property; Don't use globals.
If you need to store a value between runs, use a preference (.plist) file.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Best practices
      • From: Stan Cleveland <email@hidden>
References: 
 >Re: read stored variables in run only script application (From: "Nigel Garvey" <email@hidden>)

  • Prev by Date: Re: read stored variables in run only script application
  • Next by Date: make new alias -- weird behavior
  • Previous by thread: Re: read stored variables in run only script application
  • Next by thread: Best practices
  • Index(es):
    • Date
    • Thread