• 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: Create a list of lists?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a list of lists?


  • Subject: Re: Create a list of lists?
  • From: email@hidden
  • Date: Mon, 8 Jan 2001 13:58:59 EST

<email@hidden>writes:

>I need to create a list of lists (maybe even a list of list of lists!!)
>
>Something along the lines of:
>{{{EventName1}{Year11, Year12, Year13}},{{EventName2}{Year21, Year22,
>Year23}},{{EventName31}{Year31, Year32, Year33}}}
>
>I can capture the user entered data in variable with no problems. But
>whenever I try to create a nested list of this type I just get a long
>single comma delimited list.
>

you might need to put braces around the sublist variable:

set a to {}
repeat 4 times
set b to {}
repeat 2 times
set b to b & {0}
end repeat
set a to a & {b}
end repeat

HTH,
John


  • Prev by Date: Re: applescript-users digest, Vol 2 #201 - 10 msgs
  • Next by Date: Re: Forcing an applet to quit
  • Previous by thread: Re: Create a list of lists?
  • Next by thread: Re: Create a list of lists?
  • Index(es):
    • Date
    • Thread