• 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: How to do a goto with Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to do a goto with Applescript?
      • From: Skeeve <email@hidden>
    • Re: How to do a goto with Applescript?
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: How to do a goto with Applescript? (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: How to do a goto with Applescript?
  • Next by Date: Re: How to do a goto with Applescript?
  • Previous by thread: Re: How to do a goto with Applescript?
  • Next by thread: Re: How to do a goto with Applescript?
  • Index(es):
    • Date
    • Thread