nextItem() doesn't work
Instructions:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Run the script
- Observe that line 8 gives an "Object is invalid" error. That's because the nextItem() on line 6 didn't work.
To see this more clearly:
- Load Script4.txt into ExtendScript CC
- Open ID CC 2019
- Connect ExtendScript CC to ID CC 2019
- Comment line 6 and uncomment line 7.
- Run the script
- The script runs fine. It prints out "2", the name of the second page.
In other words, nextItem() is broken. The work around (in this case) is to use an index of "Page_263.index+1". I think, in other situations, the work around will require a loop.
1
vote
Bev
shared this idea
We’re reviewing this issue.
—
Adobe InDesign team