Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
The complete API is here
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html
Copy link to clipboard
Copied
thank you, that's exactly what i wanted.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.