I think the following works
You run a script on the server file from the local file that istalls an OnTimer script
Your script then closes the local file
A few seconds later the timer script downloads the replacement file and when it is complete it opens the new copy.
This is basicially what I have been doing in Go11. The script timer isolates a script from its action and thus allows the initiator of the action to close.
Hi jrenfrew and crispinhodges,
Thanks a lot. It works!