won't the findchangebylist sample script do that for you?
Is this what you want?
app.documents.paragraphStyle.item("OldName).name = "NewName";
It will give an error if there is already a style named "NewName" or if there isn't one named "OldName".
HI, OP's q not mine
Otherwise agreed, I think I could have managed this one on my own for