I don't fully understand the type Object. Since there is no specific reference for withProperties, I don't get how I would insert the parameters I need into a variable of the type "Object"
Is there somewhere I can see this?
ok.. my mistake. i just tried it and it doesn't work.
Apparently the ony way to chage the name of the document is by saving it with (another) filename
You can change the name of a document in two ways:
1. Open it, save it under a different name, and delete the original.
myDocument = app.activeDocument;
path = myDocument.fullName;
var x = path.toString().replace("oldName", "NewName");
//OldName is ur file's name. newName is the name u want to save it.