• 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
Adding To A List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding To A List


  • Subject: Adding To A List
  • From: DigitEL <email@hidden>
  • Date: Thu, 02 Jun 2005 00:27:24 -0700


Can anyone suggest why the following code which I am trying to create a list of incremented lists returns a list with all of the contained lists equal to the last list incremented?

set currentList to {1, 2, 3, 4}
repeat until (item 1 of currentList) is greater than or equal to the stopCount
    set item 1 of currentList to ((item 1 of currentList) + the nextIncrement)
    set item 3 of currentList to ((item 3 of currentList) + the nextIncrement)
    set the end of the newList to currentList
end repeat

Thanks in advance.

--
ForNow
EL


 _______________________________________________
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

  • Follow-Ups:
    • Re: Adding To A List
      • From: kai <email@hidden>
    • Re: Adding To A List
      • From: Malcolm Fitzgerald <email@hidden>
  • Prev by Date: Re: ANN: String to Property Coercion subroutines released
  • Next by Date: Re: ANN: String to Property Coercion subroutines released
  • Previous by thread: Re: Mail: Finding messages by ID
  • Next by thread: Re: Adding To A List
  • Index(es):
    • Date
    • Thread