Writing file name to metadata

Maybe one of these commands is all you need? You need to wrap them in a button of course.
SetAttr SETDESCRIPTION "{file}"
SetAttr META=tags:+oldname:'{file}'