Again, thanks for the suggestions. To be clear, I’m not a fan of recursion either; I’m operating largely in the dark here and guessing each step of the way. Is there some documentation reference for DT3’s internal mechanics? I learned just yesterday how to open the script editor dictionary, but I confess I don’t understand how it’s organized or how to use it. And so far I haven’t found much in the way of good reference or tutorial online.
As to for-each versus a for loop, that too is simply because I’m largely operating in the dark here. I was having problems when trying to use for-each loops running into errors about how a type couldn’t be converted–and I have to say the error reporting in the Script Editor is pretty dismal at indicating WHERE the actual problem exists–so I found a bit of code in the forums that worked and stuck with it. I agree, of course, about the preference for for-each for precisely the reasons you mention.