Skip to main content
Participant
September 30, 2023
Question

Where is the Javascript Library

  • September 30, 2023
  • 3 replies
  • 872 views

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.

This topic has been closed for replies.

3 replies

Legend
October 1, 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.

Robert at ID-Tasker
Legend
October 1, 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. 

 

rob day
Community Expert
Community Expert
September 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

 

Inspiring
October 4, 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. 

rob day
Community Expert
Community Expert
October 4, 2023