• 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: Subject: clear set property on each run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: clear set property on each run


  • Subject: Re: Subject: clear set property on each run
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 25 Feb 2015 10:14:01 +1100

On 25 Feb 2015, at 9:52 am, David Crowe <email@hidden> wrote:
>
> Why use a property?
>
> Why not just "set theList to {}"?
>
> Then it will disappear at the end of the script.

There are two possible reasons. One is a matter of scope: properties are often used to give multiple handlers access to a variable. The other is security, in terms of people reading stored values: in that case, top-level variables are also normally stored after a script is run.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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


  • Prev by Date: Re: Subject: clear set property on each run
  • Next by Date: Re: Subject: clear set property on each run
  • Previous by thread: Re: Subject: clear set property on each run
  • Next by thread: Recurring Reminders/Calendar Events?
  • Index(es):
    • Date
    • Thread