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

The word "console" in an uxp script makes InDesign hang

Community Beginner ,
Jun 14, 2023 Jun 14, 2023

For me, if I run an UXP script containing the word "console"—even in a comment—makes InDesign hang and react no more. Example:

// console
'nop'

In the Developer Tool, where the console exists, there is no problem.

InDesign 18.3 with UXP 6.5.0

TOPICS
UXP Scripting
328
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 , Jun 14, 2023 Jun 14, 2023

Hi @Hauke30377645zwrc ,

interesting. With my German version of InDesign 18.1.0.56 on macOS all is good.

Ran the script from the Scripts panel's User folder.

 

Will test later with a more current version of InDesign 2023 on Windows.

 

Did you restart your machine between the tests?

Did you trash InDesign cache and/or preferences between the tests?

 

Are there any custom startup scripts running when you start InDesign?

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Community Expert ,
Jun 14, 2023 Jun 14, 2023

Hi @Hauke30377645zwrc ,

interesting. With my German version of InDesign 18.1.0.56 on macOS all is good.

Ran the script from the Scripts panel's User folder.

 

Will test later with a more current version of InDesign 2023 on Windows.

 

Did you restart your machine between the tests?

Did you trash InDesign cache and/or preferences between the tests?

 

Are there any custom startup scripts running when you start InDesign?

 

Regards,
Uwe Laubender
( Adobe Community Expert )

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 ,
Jun 19, 2023 Jun 19, 2023
LATEST

After deleting preferences, it didn't occur again. Weird, how can a preference make InDesign being sensitive to script comments?…

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 ,
Jun 14, 2023 Jun 14, 2023

No crash for me. ID 18.3 MacOS 13.4.

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