Print/save pages

I am trying to automate download of webpages using Katalon Studio, I originally started doing this in Katalon Recorder, and have a thread in that forum where it was suggested I try Studio. I have been unable to get the suggestion to work, and was hoping someone here might be able to give me a pointer.

I attach my console log (as well as script and error log):
Script1550678167729.zip (7.8 KB)

The ooriginal thread in the Recorder forum is here.

Koleman

For reference the solution is in this related thread: For loop: access looping variable as string