brianp311 • Adobe Community Professional, Sep 24, 2020
How is it not working? Does it throw an error?
First thing is to wrap everything within your for block in a try/catch statement. This will skip through any errors.
Secondly, String.search is not available in ExtendScript. Use String.indexOf instead (>= 0, since 0 would return the start of the string).