I suggest posting a example of exactly what you want to do.
The KB article is for older versions of FIleMaker that did not have the List function. The script shown can be replaced with a single call to List in modern versions--no looping required.
Is it possible to turn the list into a found set? That is after you go to the layout in a script step. That is another question when you use the Found Set area of the Edit Script window do you have to a step to go to the Layout? If so that is fine, my main goal is to turn the records into a found set.
You don't need any list to do that.
Go To Related Records can pull up a found set of related records.
A scripted find can produce the same found set.
You may need to provide a detailed description of exactly what you want to do. A "found set" of new records? Existing Records?
I did a little more research and produced a better script, I think. I say better because it works, no hourglass but don’t know if more in line with best practices.