jj, it's throwing an error message:
Error 25: Expected: ).
Line: 94
-> before = app.activeDocument.info.instructions.substr(0,app.activeDocument.info.instructions.indexO f("<Units>"));
It looks like it's missing a closing bracket, but when I look at line 94 of the code, both brackets are closed. I can't find the error.