I am trying to create a script to rename all files in a space. The file extension is filename.bin
I want to rename it to filename.pdf without doing any other process on the file
So far I have tried the following script but without any luck
————–
// change the name of this document
document.properties.name = document.properties.name+".pdf";
// add a new property string
document.properties["cm:locale"] = mylocalenode;
// save the property modifications
document.save();
—————-
any help to correct would be appreciated