Mysterious Errors with Acrobat Pro Printing Script That Uses setTimeOut (Script Attached)
I'm trying to develop code that, with one click on a form button, (a) temporarily displays COPY over a select page then (b) prints predefined pages in a predefined order to the user's default printer. However, when the code runs (after I click any form button related to the code), nothing happens except for this error message in console:
SyntaxError: missing ] after element list
2:Doc:Exec
I'm pretty sure I'm not actually missing a bracket. The code validates as compliant JavaScript. I even removed the printRange properties (whose parameters require brackets, which is my only use of brackets in the code) and am still getting the error.
Does anyone have any idea what could be causing the syntax error? Could setTimeOut be causing it?
I'm using Adobe Acrobat Pro Continuous Release for Mac, New Acrobat UI. The code is a document-level script.
Thanks!
<text attachment removed per op -kglad>
