Copy link to clipboard
Copied
I have found a few manuals, one called "Adobe InDesign CS6 Scripting Guide: JavaScript" and another called "Adobe InDesign CS6 Scripting Tutorial".
Are there updated manuals for Adobe CC 2020?
Also, are there any other resources for learning scripting in InDesign or any of the other Adobe products?
Thank you!
Copy link to clipboard
Copied
You can browse a searchable JavaScript API here:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#about.html
There are no examples, but you can get the properties and methods for any InDesign Object.
Copy link to clipboard
Copied
The scripting language is vanilla Javacript that you can learn from the internet there are plenty of resources. Point to note that this is quite an old version of JS so the fancy features like arrow functions won't work. Basic things like strings, array, object, prototype inheritance, etc work the same as on the web.
Once you are comfortable with the language, you need to study a bit about the anatomy of an InDesign document, on this front studying the DOM documentation would help. Try to understand by making an association with the objects you see and the objects mentioned in the documentation, this will help you visualize how things are working.
Regarding sample code, you can look at the sample scripts shipped with InDesign, accessible via the Scripts panel. Right click any script and choose edit script. Now you can see the code
Also this forum is a treasure trove of helpful information on scripting, if you are stuck, search on the forum more often than not you will land on something helpful.
Hope this will get you started
-Manan
Copy link to clipboard
Copied
Dowload the latest scripting sdk here https://console.adobe.io/downloads/id
Also this scripting tutorial series maybe a good way to start https://www.youtube.com/user/BSKTCreation/videos
Copy link to clipboard
Copied
Hi cday119,
what is your background?
Are you a designer?
Are you a developer with programming experience in languages like C++, JavaScript or something like that?
How is your knowledge of InDesign itself?
You might find wealth in some books about ExtendScript scripting and InDesign:
JavaScript For InDesign 2nd Edition
by Peter Kahrel
https://indesignsecrets.com/now-available-javascript-for-indesign-2nd-edition.php
Older sources:
Automating Adobe InDesign CS4 with ExtendScript
July 1, 2009
by Shirley W. Hopkins
http://www.yourscriptdoctor.com/ExtendScript.html
Only available in German:
InDesign automatisieren 2. Auflage
by Gregor Fellenz
https://www.indesignjs.de/auflage2/
http://www.indiscripts.com/post/2015/12/indesign-automatisieren-scripting-bible-in-german
Regards,
Uwe Laubender
( ACP )
Copy link to clipboard
Copied
I am a developer. I am mostly familiar with web development, PHP on the server side and JavaScript on the client side.
I am also familiar with Photoshop, but just started using InDesign.
I work for a company that produces name badges, so I basically work with logo images and text boxes. Right now I am trying to take a json file, which has all the properties of the logo and text boxes such as size and placement, and write a script to create the InDesign job. I got it pretty much working, but I would like to optimize it, and the resources I am finding are pretty lacking.
I would also like to create an imposition script, so I can take the one InDesign file and put it multiple up on a sheet.
That first book you linked to looks great, thank you!
Copy link to clipboard
Copied
Also, see my course on LinkedIn Learning: InDesign: Scripting Made Easy