If it’s a Rename Script theb you shouldn’t add an OnInit method, and it goes into the Rename dialog (not into Settings > Scripts; that’s for script add-ins).
See the Rename Scripts part of this post:
If it’s a Rename Script theb you shouldn’t add an OnInit method, and it goes into the Rename dialog (not into Settings > Scripts; that’s for script add-ins).
See the Rename Scripts part of this post: