• 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: Making a List of Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a List of Lists


  • Subject: Re: Making a List of Lists
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 26 Apr 2013 13:57:56 -0700

On Apr 26, 2013, at 1:27 PM, Luther Fuller wrote:

Do this …

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
2

Or do this...

set MyFakeArray to {}
set list_item to {"A", "B", "C", "D"}
set end of MyFakeArray to list_item
set list_item to {"E", "F", "G", "H"}
set end of MyFakeArray to list_item
length of MyFakeArray
--> 2
MyFakeArray
--> {{"A", "B", "C", "D"}, {"E", "F", "G", "H"}}
item 3 of item 2 of MyFakeArray
--> "G"

Stan C.

 _______________________________________________
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: 
 >Making a List of Lists (From: Marconi <email@hidden>)
 >Re: Making a List of Lists (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Execute Javascript on an HTML file
  • Next by Date: Re: Execute Javascript on an HTML file
  • Previous by thread: Re: Making a List of Lists
  • Next by thread: Epoch Seconds to YYYY-MM-DD
  • Index(es):
    • Date
    • Thread