> So the working script is
[snip]
> But I imagine there is an easier way and it would be good to know if
> there is a version of c.saveAs() that accepts a newfilename.
I doubt there is a substantially easier way: init code is inherently
tricky. You could take a look at the c.new code, but it's pretty
geeky too.
Adding a filename argument to c.saveAs and c.saveTo would be useful
additions for scripts.
Feel free to contribute such a patch. To be considered, the patch
should include a unit test demonstrating that the new argument works.
Edward