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

scripting Error for InDesign

New Here ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

SuriyaG_0-1726642364691.png

 

SuriyaG_1-1726642446109.png

I set target indesign 2021  but error throwing ? 

 

I used error handling then also error throwing 

TOPICS
Bug , Scripting

Views

195

Translate

Translate

Report

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 ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Hi @Suriya G ,

show the the function replaceColor.

Used variable TemplateFilePath as argument in the function seems to have no valid value.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Translate

Report

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
New Here ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

@Laubender 

But the function called inside try and catch.

Even when TemplateFilePath variable has not no value means it need to skip.

Then why extendscript showing error?

Votes

Translate

Translate

Report

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 ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

Is variable TemplateFilePath declared somewhere?

var TemplateFilePath;

it's hard to help when the full script code is not available…

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Votes

Translate

Translate

Report

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
New Here ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

@Laubender 

 

I have no idea about TemplateFilePath variable is declared or not.

But the variable used inside try catch then also it's showing error.

Any idea about that ?

 

Regards,

Prasanth

Votes

Translate

Translate

Report

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 ,
Sep 18, 2024 Sep 18, 2024

Copy link to clipboard

Copied

LATEST

@prasanth_3982

 

Without seeing the code it's just a waste of time - mostly yours.

 

Votes

Translate

Translate

Report

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