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

JS $.writeln Launches Extendscript

Community Expert ,
Sep 27, 2021 Sep 27, 2021

Not sure if this has always been the case, but I’ve noticed lately if I run a JavaScript from the Scripts panel with a $.writeln line which isn’t commented out,  ESTK will launch along with the script. Is there an ESTK preference that would prevent that from happening? Running CC2020 on Mojave.

TOPICS
Scripting
1.1K
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 1 Correct answer

Community Expert , Sep 28, 2021 Sep 28, 2021

It has always been the case. Happens in InDesign Server as well. You'll have to comment out those lines or redirect output to an alert or a log file depending on the environment.

Translate
Community Expert ,
Sep 27, 2021 Sep 27, 2021

You can put $.level = 0; in the code. 

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#$.html

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 ,
Sep 28, 2021 Sep 28, 2021

Hi @brian_p_dts,

I have tried this in the past and if I remember correctly this did not do the trick for me, atleast in InDesign. Let's see what Rob encounters.

-Manan

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 ,
Sep 28, 2021 Sep 28, 2021

Thanks @brian_p_dts, that did not work for me. I set it as the firstline of the script? This will launch ESTK when run from my Scripts panel:

 

$.level = 0;
alert("Hello World");
$.writeln("Hi")

 

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 ,
Sep 28, 2021 Sep 28, 2021
LATEST

Sorry, thought that would work. 

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 ,
Sep 28, 2021 Sep 28, 2021

It has always been the case. Happens in InDesign Server as well. You'll have to comment out those lines or redirect output to an alert or a log file depending on the environment.

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 ,
Sep 28, 2021 Sep 28, 2021

Thanks.

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