I am just taking an existing window and: rename it and use a different layout. Straight forward stuff.
However, no matter what the last line of the script it, when it executes it closes the window.
This means that if I remove Select Window, then Set Window... will close the window. If I remove the Set Window Title
command, then Scroll Window will close the window. Weird. Or, is it me?