Re: list-building performance
Re: list-building performance
- Subject: Re: list-building performance
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 2 Jun 2007 20:32:23 +0200
Le 2 juin 07 à 20:17:33, Nigel Redmon a écrit :
That doesn't do what I want, but thanks for bringing it up, because
I hadn't yet figured out the right syntax to combine the items...
"set end of theList to {{...},{...}}" appends a list of two lists,
so that the final lists ends up containing 1000 lists, of which
each sublist contains two lists (the original script builds a list
that contains 2000 lists of items). I've tried various forms of
appending, referring to contents and items of the lists, but
haven't figured it out. That is, is there a way to
{{<listA>}} & {{<listB>},{<listC>}}
and get
{{<listA>},{<listB>},{<listC>}}
instead of {{<listA>},{{<listB>},{<listC>}}?
thanks
Oops, you are right.
I tested with
a repeat 2 times loop and an extraneous log theList1
I was fooled by the history which was:
tell current application
current date
date "samedi 2 juin 2007 20:22:21"
current date
date "samedi 2 juin 2007 20:22:21"
(*0, false, 60, 100, 1, false, 60, 0, 1, false, 60, 100, 2, false,
60, 0*)
end tell
with both codes.
I checked what you wrote after adding an extra
"log count of theList1"
which returns 4 with your code,
2 with mine.
Yvan KOENIG
_______________________________________________
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