Re: Getting record items of a sublist
Re: Getting record items of a sublist
- Subject: Re: Getting record items of a sublist
- From: Wayne Melrose <email@hidden>
- Date: Mon, 31 Oct 2011 17:21:48 +0100
- Sun-java-system-smtp-warning: Lines longer than SMTP allows found and wrapped.
On 31. okt. 2011, at 15:40, Zack Jarrett < email@hidden> wrote: Looping through the list may feel inelegant but it must be done in order to get what you want. The only problem with doing it in pure AppleScript is speed. You may find that with a large list (like thousands or tens of thousands of elements) your script becomes obtrusively slow.On Oct 29, 2011, at 12:14 PM, wayne melrose wrote: But is there any real problem in looping through each one to build your new list of names?
The updates since I posted this showed that there are alternatives, however looping and properly calling on the record using 'my' before the variable showed that it actually isn't that slow. Granted, tens of thousands would probably still be pretty slow however I didn't realise what impact 'my' had until this discussion. (I knew it had a place, I just didn't realise it's scope) |
_______________________________________________
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