Hello,
i want to change the Name of active GH file wiht python script.
Y only found how to have his actual name, with ghdoc.Name
but is it possible to change it in “newName.gh” ?
Are you sure you don’t mean the active Rhino file?
I think you could copy a .gh and save it as a new .gh just using the python os module.
But trying to rename it (copy it and delete the original), from code within that exact same file (as it esentially requires trying to delete it while another application still has it open) is likely to lead to any number of problems, even if somehow it can be made to work.