• 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: can't get it to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't get it to work


  • Subject: Re: can't get it to work
  • From: John Delacour <email@hidden>
  • Date: Thu, 10 Apr 2003 00:42:35 +0100
  • Mac-eudora-version: 6.0a14

At 4:09 pm -0700 9/4/03, Andrew Oliver wrote:

On 4/9/03 1:02 PM, "John Delacour" <email@hidden> wrote:

theResult is a
very bad label for a variable. No variable should begin with "the"
and and the name of the variable should bear some close semantic
relationship to its contents. (the result) has a special meaning

While I understand the special relevance of "the result" in AppleScript, I
don't understand your first statement.

'the' is optionally prefixed to ANY variable to use theSelection as a variable for 'the selection' or anything alse is likely to lead to confusion.

Do you have any basis for not using 'the' as a prefix for a variable name,
other than your own personal coding style/preference?

Yes, the personal coding prefererences of the Cal school and most scripters who have been with Applescript from the beginning before the Sal school came in and started screwing things up.

If you want good clear style, look at "Language at a Glance"

While an arguably admirable trait, this appears to be more personal
preference than absolute law, in which case you should preface your
statement with an appropriate disclaimer.

I prefer to be plain dogmatic :-)

In my opinion, syntax highlighting adequately differentiates the two and
makes it a non-issue.

I learned my Applescript on an SE-30 and I use Applescript in Frontier, neither of which think I should prefer my uncompiled scripts in pale orange.

There are numerous examples of scripts that use theVariableName form without
problems, including many in Bruce Perry's AppleScript in a Nutshell, IMHO
currently the best/most complete reference book on AppleScript available.

Never heard of him. I only read books on perl.

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: can't get it to work (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Folder Actions Help
  • Next by Date: Re: can't get it to work
  • Previous by thread: Re: can't get it to work
  • Next by thread: Re: can't get it to work
  • Index(es):
    • Date
    • Thread