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

Where is the Javascript Library

New Here ,
Sep 30, 2023 Sep 30, 2023

Hello,

I try to write  a plugin in InDesign using the developer tools. Everything works fine and a can use the Javascript examples to start the development. But I do not have any codecompletion in the Editor (Webstorm or VSC). Trying to install the Node.js modul via

 install indesign --save

You get a 404 because indesign is not found in the node registry.

Where can a find the correct file to install it manualy?

Or is there an other way to get codecompletion for the Object Model?

It is very hard to program in js without any codeassistant looking up every api command in the html api doc.

Thanks for the help.

TOPICS
Import and export , Scripting , SDK , UXP Scripting
921
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 30, 2023 Sep 30, 2023

Hi @Karsten326314825qji , Have you installed the ExtendScript plugin with VS Code? Here's the plugin page and instructions:

 

https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug

 

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
Enthusiast ,
Oct 03, 2023 Oct 03, 2023

is VS code really the only way to view the object model? i just write simple scripts but none of my scripts work anymore says soandso object doesn't support x method. i just want to know what the methods are for javascript. 

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 ,
Oct 03, 2023 Oct 03, 2023
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
Enthusiast ,
Oct 04, 2023 Oct 04, 2023
LATEST

thank you, that's exactly what i wanted. 

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 ,
Sep 30, 2023 Sep 30, 2023

If you want to write in JavaScript - then you are writing scripts - not real plugins - so you are looking for Scripting Guide.

 

Plugins are completely different beast. 

 

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
Enthusiast ,
Sep 30, 2023 Sep 30, 2023

I assume you are talking about the UXP plugin.

 

Code completion is brought to us by Type declaration, but InDesign doesn’t seem to have that officially provided yet; in the case of Photoshop, Adobe’s development team has already provided it.

 

According to this article Plans for UXP in 2023 | Adobe Tech Blog, Adobe UXP Developer Tool.app (UDT) version 2.0 was scheduled to provide Type declaration.

 

UDT 2.0 is already available. You can try it out. I don’t know yet if that has been accomplished since I am not try yet.

 

If it is not yet supported, you will have to make your own or install Types published by a bona fide third party.

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