• 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: Property not behaving in Smile 3.6.0 (Build 668)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Property not behaving in Smile 3.6.0 (Build 668)
      • From: Robert Poland <email@hidden>
References: 
 >Property not behaving in Smile 3.6.0 (Build 668) (From: Robert Poland <email@hidden>)
 >Re: Property not behaving in Smile 3.6.0 (Build 668) (From: Stan Cleveland <email@hidden>)
 >Re: Property not behaving in Smile 3.6.0 (Build 668) (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Property not behaving in Smile 3.6.0 (Build 668)
  • Next by Date: Re: Property not behaving in Smile 3.6.0 (Build 668)
  • Previous by thread: Re: Property not behaving in Smile 3.6.0 (Build 668)
  • Next by thread: Re: Property not behaving in Smile 3.6.0 (Build 668)
  • Index(es):
    • Date
    • Thread