In High sierra, I made a working applescript that bulk renames and moves files. In monterey, not only does it not work, but apparently I can't rename anything? I made something simple like the below script and even that gives me a 10003 error (access not allowed). is there a permission somewhere I need to turn on?
tell application "Finder"
set theFile to "hello world.txt"
set theName to "hello"
set the {name} of file theFile to theName & ".txt"
end tell