• 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: Scripting in Excel -> search different words in column and color them
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting in Excel -> search different words in column and color them


  • Subject: Re: Scripting in Excel -> search different words in column and color them
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 24 Oct 2002 21:17:09 -0700

On 10/24/02 5:09 PM, "has" <email@hidden> wrote:

> Paul Berkowitz wrote:
>
>> ASLG, pp. 256-7, but notice the catch described in the NOTES, requiring
>> 'contents of' operator, or else evaluating the list item explicitly to a
>> variable. For that reason (i.e. forgetting about it), it's usually simpler
>> to use the 'Repeat With (loopVariable) From (startValue) To (stopValue)'
>> method.
>
> I don't agree with this. I can't see using:
>
> item i of foo
>
> inherently being any simpler than using:
>
> contents of foo

The thing is - you don't have to _use_ it. you just do it once, because you
have to:

repeat with i from 1 to (count theList)
some someNiceVariable to item i of theList


and from there on in you can just refer to 'someNiceVariable ' without fear
anything will bite you.

Whereas

repeat with someNiceVariable in theList


you have to keep referring to 'contents of someNiceVariable' every bloody
time you want to _use_ it, or else set another variable to the contents, in
which latter case you might as well just use the 'repeat with i from 1 to
whatever' method.

--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Scripting in Excel -> search different words in column and color them
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Scripting in Excel -> search different words in column and color them (From: has <email@hidden>)

  • Prev by Date: Re: Can't quit from Dock or cmd-Q
  • Next by Date: Re: Can't quit from Dock or cmd-Q
  • Previous by thread: Re: Scripting in Excel -> search different words in column and color them
  • Next by thread: Re: Scripting in Excel -> search different words in column and color them
  • Index(es):
    • Date
    • Thread