Making a List of Lists
Making a List of Lists
- Subject: Making a List of Lists
- From: Marconi <email@hidden>
- Date: Fri, 26 Apr 2013 13:11:53 -0700
How do I make a list of lists? I want it such that...
set MyFakeArray to {}
set list_item to {"A", "B", "C", "D"}
set MyFakeArray to MyFakeArray & list_item
set list_item to {"E", "F", "G", "H"}
set MyFakeArray to MyFakeArray & list_item
count of MyFakeArray
8
I want item 2 of MyFakeArray to be "E", "F", "G", "H" such that I can refer to "item 3 of (Item 2 of MyFakeArray)" to be "G"
That is, I want item 2 of MyFakeArray to be a lis: {"E", "F", "G", "H"}
As is, "count of MyFakeArray" is 8 and item 2 is "B".
I don't want one long list, I want MyFakeArray to be a list of lists.
I need to start with an empty list {} and populate it with lists.
_______________________________________________
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