Copy link to clipboard
Copied
Hi Everyone,
I tried doing a search for this issue, but couldn't find anything newer than 2018, and none of the solutions discussed there solved my problem.
I create a monthly magazine in InDesign, and set it all up to build a Table of Contents at the end. Of course, a lot of formatting changes need to be made to the ToC after the fact, so I set up a BUNCH of grep find/change functions. But I wanted to try and set it up to be a one and done type of thing, so I set up the findchangebylist.txt file using the Record Find Change script written by Martin Fisher.
When I ran it, it appeared to run some of the find/changes in the script, but definitely not the first one, and then I got JavaScript Error Number 17. I removed the commas from the beginning that were created by the recording script, as suggested in this post, but the error persisted and didn't change.
Any help figuring out what I'm missing or doing wrong would be greatly appreciated.
Thank you.
That doesn't appear to be the problem. Removing those tabs didn't change the error, so I suppose they probably weren't needed.
By @aDavidAlan
OK, I've re-read the "manual" for the list - and it looks like everything after the tab should be treated as a description.
There is only one thing you could do - run one line at a time...
OR...
there is double "{{"
Had a quick look and saw two opening {{
Any reason? Sorry I haven't taken a closer look at this it just jumped out
Copy link to clipboard
Copied
I think this:
At the end you forgot to add "//" before your comments - you've done this for the first few rows:
Copy link to clipboard
Copied
That doesn't appear to be the problem. Removing those tabs didn't change the error, so I suppose they probably weren't needed.
Copy link to clipboard
Copied
That doesn't appear to be the problem. Removing those tabs didn't change the error, so I suppose they probably weren't needed.
By @aDavidAlan
OK, I've re-read the "manual" for the list - and it looks like everything after the tab should be treated as a description.
There is only one thing you could do - run one line at a time...
OR...
there is double "{{"
Copy link to clipboard
Copied
Had a quick look and saw two opening {{
Any reason? Sorry I haven't taken a closer look at this it just jumped out
Copy link to clipboard
Copied
Copy link to clipboard
Copied
So you did! My bad - you are correct I guess.
Copy link to clipboard
Copied
That was it! no more error. Thanks for all your help!