Change the Function drop-down to Standard Function, not Script Function.
More discussion here: Can't have embedded rename script in Script Function mode
Change the Function drop-down to Standard Function, not Script Function.
More discussion here: Can't have embedded rename script in Script Function mode