Skip to main content
Inspiring
Apr 21, 2020 1:18 PM UTC
Answered

undefined is not an object error is coming in jsx file with In-design Extended script tool kit

I am begineer in-design and trying to explore this tool for my project needs. I come to know that extended script tool is good to get started with in-design scripting but when I tried a simple jsx file for document creation I am getting following bug "undefined is not an object". If there is any references we need to give of any files/libraries to make it working.

 

 

Please help

 

This topic is closed to new replies. Start a new post to keep the conversation going.
rob day
rob dayCorrect answer
Community Expert
Apr 22, 2020 9:51 AM UTC

You are targeting Extendscript Toolkit and not InDesign. The code would only work with InDesign, so it has to be running.

7 replies

Participant
Sep 18, 2024 6:55 AM UTC

 

I set target indesign  but error throwing ? 

Translate
Community Expert
Sep 18, 2024 7:26 AM UTC

Hi @Suriya G ,

I answered your question in your other thread:

https://community.adobe.com/t5/indesign-discussions/scripting-error-for-indesign/m-p/14866570#M589443

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
rob day
Community Expert
rob dayCommunity ExpertCorrect answer
Community Expert
Apr 22, 2020 9:51 AM UTC

You are targeting Extendscript Toolkit and not InDesign. The code would only work with InDesign, so it has to be running.

Translate
Community Expert
Apr 21, 2020 4:41 PM UTC

Hi ashishktrig,

check your screenshot in your inital post.

I can clearly see that you did not connect to any kind of InDesign in the moment you executed your script.

 

Regards,
Uwe Laubender

( ACP )

Translate
Inspiring
Apr 22, 2020 8:54 AM UTC

Yes, In screet shot it is like that but I tried In-design Server as well but not Indesign as its trial period has been expired so does will have to select Adobe In-design instead of Indesign-Server to make it work

 

 

 

 

Regards,

Ashish Khandelwal

Translate
selvam214
Inspiring
Apr 21, 2020 1:40 PM UTC

Hi,

Kindly change your target application.

 

 

 

Selva

Translate
Inspiring
Apr 21, 2020 1:52 PM UTC

I have target application as follows and I have choosen adobe in design 2020 server also but still it showing error

 

 

Translate