Need help tweaking Populate Template Placeholders script

I’ve used Curt Clifton’s Populate Template Placeholders in OF1 for many years. Back in the day, I tweaked it so that the populated project appeared in the same folder as the template, and there was no need to move it into place, as it is already in place.

I just switched to OF2, and my old script no longer works. I downloaded Curt’s script, but my scripting abilities are so lame that I cannot figure out how to repeat my feat on the new version of Curt’s script.

Is anyone interested in helping me figure this out? It does make the script vastly more convenient.

Thanks in advance.