Re: read stored variables in run only script application
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