View Single Post
Quote:
Originally Posted by ericscheid View Post
Code:
set lstChiln to {}
set plstSeen to {} -- ADD THIS MISSING LINE
tell canvas of oParent
FWIW declaring large lists as script-level properties rather than local variables seems to improve their performance in Applescript.

(Hence the absence of a declaration for that list property within the function I should probably have pasted a preceding property declaration for you to make it a bit clearer).