Re: Property not behaving in Smile 3.6.0 (Build 668)
Re: Property not behaving in Smile 3.6.0 (Build 668)
- Subject: Re: Property not behaving in Smile 3.6.0 (Build 668)
- From: Stan Cleveland <email@hidden>
- Date: Fri, 23 Dec 2011 10:57:22 -0800
On Dec 23, 2011, at 10:38 AM, Robert Poland wrote: Thanks Stan,
It is my understanding that "property optionKeyDown : false" sets the variable. And "if optionKeyDown then beep 2 end if" is using it.
Your change, moving the reset, won't reset after the run.
True, Robert, but it will get reset before it's needed again. I question whether a post-run reset is really useful. Consider:
1) You won't use the property again until the next run. 2) The next script run must depend upon the stored value from the prior run. 3) S**t happens. 4) Defining a variable or property just before you use it is generally accepted as good practice.
FWIW, Stan C.
|
_______________________________________________
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