Range Error/Reference Error issue
I have run the below script for years without problem or error in older versions of Adobe Pro. This script takes a pdf file with any number of pages and sorts them to make the page starting in the middle of the document +1, the new page 2, and so on, resulting in a new sort that has pages backed up correctly for print purposes.
for (i = 0; i <= this.numPages/2-1; i++)
this.movePage(this.numPages-1, this.numPages/2-i-1);
This year I upgraded to Creative Cloud and am receiving varied results with the script.
On the first set of documents, the script worked without fail. The second returned RangeError on movePage, but now all subsequent tries return:
ReferenceError: i is not defined
1:Console:Exec
undefined
Any idea what's not working?
