Script to rename from a file or clipboard content

Is this similar to the From File rename script?

If you're renaming and want it to be like the rename dialog, you can run scripts inside the real rename dialog (although there are cases where it makes sense not to, too).