Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
17

FindChangeByList - Javascript Error Number: 17

Community Beginner ,
Feb 28, 2024 Feb 28, 2024

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.

TOPICS
How to , Scripting
722
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

LEGEND , Feb 28, 2024 Feb 28, 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...

 

RobertTkaczyk_0-1709169789169.png

 

there is double "{{"

 

Translate
Community Expert , Feb 28, 2024 Feb 28, 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

 

EugeneTyson_0-1709190886323.png

 

 

 

Translate
LEGEND ,
Feb 28, 2024 Feb 28, 2024

I think this:

RobertTkaczyk_0-1709166151111.png

 

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

RobertTkaczyk_1-1709166214505.png

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 28, 2024 Feb 28, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 28, 2024 Feb 28, 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...

 

RobertTkaczyk_0-1709169789169.png

 

there is double "{{"

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2024 Feb 28, 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

 

EugeneTyson_0-1709190886323.png

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 29, 2024 Feb 29, 2024

@Eugene Tyson

 

Yeah, found it yesterday 😉

 

Let's see if it will work for @aDavidAlan

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 29, 2024 Feb 29, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 29, 2024 Feb 29, 2024
LATEST

That was it!  no more error.  Thanks for all your help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines