Skip to main content
Participating Frequently
July 29, 2024
Question

InDesign's scripting capabilities

  • July 29, 2024
  • 2 replies
  • 1110 views

Hi folks

I am currently researching about the scripting capabilities of InDesign. Actually I want to know whether I can run a script in InDesign to do a feature that is not supported by InDesign. For example I want to add character limit and format to a form field created in InDesign. But it is not possible in InDesign. Is there any way I can do it using scripts?

This topic has been closed for replies.

2 replies

Robert at ID-Tasker
Legend
July 29, 2024

@Praveena38872767xscr

 

Your example refers to the functionality of the interactive PDF. 

 

Can be done by injecting JavaScript code into the exported PDF - but needs to be done in Acrobat - AFTER exporting PDF. 

 

Participating Frequently
July 29, 2024

Actually I wanted to do it within InDesign itself. Is there any way for that?

Robert at ID-Tasker
Legend
July 29, 2024
quote

Actually I wanted to do it within InDesign itself. Is there any way for that?


By @Praveena38872767xscr

 

No. 

 

Community Expert
July 29, 2024

Generally scripting is used for automation of InDesign. Whether something can be done or not can be answered by looking at the InDesign DOM API and figuring out what is possible or not via scripting. For that start at the link given below

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html

Now if you find that scripting is lacking for your task then the final tool you can explore is creating C++ plugin for InDesign. This can do almost anything within the app. The only need is that it should have been exposed by the Adobe team for the 3rd party developers.

-Manan

 

Participating Frequently
July 29, 2024

Thankyou for your reply