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

Where is the Javascript Library

New Here ,
Sep 30, 2023 Sep 30, 2023

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.

TOPICS
Import and export , Scripting , SDK , UXP Scripting

Views

539
Translate

Report

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

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

 

Votes

Translate

Report

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

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. 

Votes

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Report

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

Copy link to clipboard

Copied

LATEST

thank you, that's exactly what i wanted. 

Votes

Translate

Report

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

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. 

 

Votes

Translate

Report

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

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.

Votes

Translate

Report

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