• 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: Alex Zavatone <email@hidden>
  • Date: Tue, 11 Jan 2011 20:47:18 -0600

On Jan 11, 2011, at 10:13 AM, KOENIG Yvan wrote:

>
> 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

Yeah, I ran a timing script last night and there was no speed difference.  Why would someone try to optimize speed for i, j, or k these days when you can optimize for all variable names? _______________________________________________
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

References: 
 >How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: André Renault <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Michelle Steiner <email@hidden>)
 >Re: How to do a goto with Applescript? (From: "Mark J. Reed" <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: "Mark J. Reed" <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Robert Poland <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Alex Zavatone <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Doug McNutt <email@hidden>)
 >Re: How to do a goto with Applescript? (From: Alex Zavatone <email@hidden>)
 >Re: How to do a goto with Applescript? (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Variable names (was: 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