Re: How to do a goto with Applescript?
Re: How to do a goto with Applescript?
- Subject: Re: How to do a goto with Applescript?
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 10 Jan 2011 20:05:37 -0600
- Acceptlanguage: en-US
- Thread-topic: How to do a goto with Applescript?
Title: Re: How to do a goto with Applescript?
>>> Or don't believe me and keep on making the same mistakes. I learned this by facing my old bad habits and seeing if it was worth it to spend the time to make my core more naturally understandable. ‘
I agree with much of what you’re saying, but, there is more than one way to resolve these issues. For me, it’s actually more intuitive to use the x, y, z for increments in nested repeat loops than a descriptive term. But, you are right, if I were using single char variables for other things too, it would quickly become an indecipherable mess.
For nearly all other cases I choose a variable name that is both consistent with the english language metaphor and descriptive of the variable’s contents.
I use globals and properties sparingly and never have a problem caused by not knowing the scope of a variable. Adding those scoping characters make the script less understandable and breaks the english like flow of the script, which also makes it harder to read.
ES
_______________________________________________
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