Automatically rename new files added to a specific folder

I got to look at this more… man… a lot here. I love it, though. BigUp to cyilmaz who made a super example to use right away. The example helps in understanding Script Add-in as well. BigUp to lxp, who made a great example of a concise way to traverse numbers in Directory Opus code. The example here probably has a lot of room for improvement. I only mean the little part I added. However, it seems to be working well. The regex can always be better. I have noticed that with certain file names with complex text strings, this can miss. BigUp to errante for pointing out that Directory Opus has this ability.

I am wondering what is even possible in server directories in an Opus lister. When combining scripting methods with the file handling ability Directory Opus has, its too good to be true!

**** Please note that using scripts like this and other things talked about here can reek havoc on you data. Do this at you own risk!
That being said try this...
autoNumImgfiles.js.txt (4.6 KB)
rename the file to autoNumImgfiles.js and see how to install and use it here...