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: KOENIG Yvan <email@hidden>
- Date: Tue, 11 Jan 2011 17:13:06 +0100
Le 11 janv. 2011 à 16:31, Alex Zavatone a écrit :
>
>
> On Jan 10, 2011, at 7:24 PM, Doug McNutt wrote:
>
>> At 13:12 -0600 1/10/11, Alex Zavatone wrote:
>> Calling variables, i, j, or x is meaningless.
>>
>>
>> This is way off topic anyway but. . .
>>
>> i, j and also k l m n are, since about 1962 when they, used alone, were directed to hardware index registers. Using them as loop indices resulted in higher speeds. As first letters in longer names they indicated use of integers.
>>
>> x and names that started with letters other than the ones above were floating point.
>>
>> And, oh yes, they had to be used as capitals because a byte was 6 bits.
>>
>> So perhaps you meant meaningless to AppleScript. I'll bet they still work. But I'll also bet AppleScript doesn't even try to optimize processing speed in . . .
>>
>> At 12:11 -0800 1/10/11, Stan Cleveland wrote:
>> repeat with i from 1 to 10
>> display dialog i
>> set i to i + 2
>> end repeat
>
> It doesn't. I checked last night. Why should it? Code should be tokenized and interpreted and or JIT compiled. A variable name is meaningless to the compiler.
As I wrote many times in iWork dedicated forums, name a variable G_W_Busch or Al_Capone, exactly like in real life, the script will have the same behavior.
Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 17:12:40
_______________________________________________
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