Re: *Very* strange script / global variable behavior
Re: *Very* strange script / global variable behavior
- Subject: Re: *Very* strange script / global variable behavior
- From: Doug McNutt <email@hidden>
- Date: Sun, 13 Mar 2005 16:30:42 -0700
At 17:01 +0100 3/13/05, Axel Luttgens wrote:
>So, everyone would understand the error produced by Code4 because of basic and almost universal programming rules.
<rant>
You guys sound like the perl6 internals mailing list but at least those fellows are talking about a product in development and not a released language publicly promoted for casual Mac users.
I have another talk to give to the local user group, subject AppleScript. There are typically 40 members present and they use a variety of software which would benefit through scripting. Last time I spoke I recommended this list as a source of answers and a few listeners did in fact write an AppleScript for themselves.
If they see this kind of academic discussion they will surely give up.
Do you suppose we could get Atkinson back for consultation? Can someone provide a subset of AppleScript constructs that obey some kind of KISS principle and should be recommended to a novice programmer?
As for universal programming rules, the "almost" modifier dominates. It would really be nice if AppleScript could say "globals are handled as in perl or C" or "globals and properties behave identically" or "local variables need a 'my' keyword" or "local subroutines need a 'my' but local variables don't unless the local variable is really a property and some globals get saved on disk but not all depending on who executes the script." Anyone remember the COMMON statement in FORTRAN. I think I could explain that.
</rant>
The new Missing Manual is good reading but it does say that AppleScript is bug-free!
If my_variable is almost equal to 2 then . . .
hmmm.
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden