Skip to main content
aDavidAlan
Participating Frequently
February 29, 2024
Answered

FindChangeByList - Javascript Error Number: 17

  • February 29, 2024
  • 2 replies
  • 1160 views

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.

This topic has been closed for replies.
Correct answer Eugene Tyson

Had a quick look and saw two opening {{

Any reason? Sorry I haven't taken a closer look at this it just jumped out

 

 

 

 

2 replies

Eugene TysonCommunity ExpertCorrect answer
Community Expert
February 29, 2024

Had a quick look and saw two opening {{

Any reason? Sorry I haven't taken a closer look at this it just jumped out

 

 

 

 

Robert at ID-Tasker
Legend
February 29, 2024

@Eugene Tyson

 

Yeah, found it yesterday 😉

 

Let's see if it will work for @aDavidAlan

 

Community Expert
February 29, 2024

So you did! My bad - you are correct I guess. 

Robert at ID-Tasker
Legend
February 29, 2024

I think this:

 

At the end you forgot to add "//" before your comments - you've done this for the first few rows:

 

 

aDavidAlan
Participating Frequently
February 29, 2024

That doesn't appear to be the problem.  Removing those tabs didn't change the error, so I suppose they probably weren't needed.

Robert at ID-Tasker
Legend
February 29, 2024
quote

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 "{{"