It can be, if the SO can be identified by the script based on its location on the page, its pattern or its textual context.
And of course it has to be real text, not a part of an image.
One small caveat, though, is that you can't rename files using an Action. You can only save a copy under the new name.
Thanks for your fast answer, my files are searchable by text however they contain the logo of the company (image).
For me it is fine if I can save a copy of them. Do you know how to get that code, I am not familiar with jscript or how to start.
The logo image is not a problem.
Yes, I've developed similar codes many times in the past for my clients, but it's impossible to say for sure if it will work or not without seeing some sample files. If you wish you can send them to me directly (try6767 at gmail.com) and I'll let you know if I think it's doable or not, and if so, how much it will cost.