Skip to main content
grefel
Community Expert
Community Expert
October 18, 2018
Question

[ANN] InDesign CC 2019 DOM API Docs

  • October 18, 2018
  • 8 replies
  • 5546 views

I've just updated my representation of the Scripting DOM API Documentation for InDesign CC 2019.

http://www.indesignjs.de/extendscriptAPI/indesign-latest/

The website supports copy & paste for every text where the copy icon appears while hoovering with the mouse.

You can find a short overview of the DOM here:

http://www.indesignjs.de/auflage2/wp-content/uploads/2015/04/InDesign_Skripting_Kurzreferenz.pdf

If your're looking for offline usage check out the HTML Version https://www.indesignjs.de/extendscriptAPI/indesign14.zip or CHM https://www.indesignjs.de/extendscriptAPI/chm_indesign14.zip

Code Completion for Sublime Text is available here: https://www.indesignjs.de/extendscriptAPI/indesign-latest/jsx.sublime-completions

If there is interest in IntelliSense/VS Code - with your help how to structure IntelliSense Code Completion I will provide that happily.

In case you're interested in the creation process, have a look at the transformations at https://github.com/grefel/extendscriptApiDoc

A big THANK YOU towards jongware who inspired me with his version at http://jongware.mit.edu/ for the work!

This topic has been closed for replies.

8 replies

Community Expert
November 5, 2019

pixelwerk said:

 

Cheers Uwe!
"document.adjustLayout()

Extensively documented with samples."

...do you have a link to the documentation with samples?
Thank you in advance
Johan

 

Hi Johan,

see into Gregor's compiled DOM documentation:

https://www.indesignjs.de/extendscriptAPI/indesign14/#Document.html#d1e49265__d1e52193

 

Regards,
Uwe Laubender

( ACP )

 

Community Expert
November 5, 2019

Hi Luiz,

I would suggest that you open a new thread about your issues with Adjust Layout.

Provide some code, a test document and some screenshots where we can see what's going wrong.

 

Thanks,

Uwe Laubender

( ACP )

 

PS: Oops. I answered a reply from December 2018.
Thought it was a new post from this year. Someone answered as a nested reply somewhere else in this thread.

Participating Frequently
December 11, 2018

Hi.

My script here was just to convert A4 to Letter. In the past, it was turning on layout adjustments, changing page size and bleed. Easy. Now it makes a mess in the document.

The new "Adjust Layout" button works fine for me, but I couldn't make it work via script. I'm already missing CC 2018...

Luiz

Loic.Aigon
Legend
November 6, 2018

I see, thanks a lot Justin.

Justin Putney
Known Participant
November 6, 2018

No problem, Loic. :-)

Loic.Aigon
Legend
November 6, 2018

Oh my…

PS: I tend to use this syntax for checking properties :

if ( !myDoc.properties.layoutAdjustmentPreferences ) …

do the community think hasOwnProperty is preferable ? The only hiccup I found was that properties.prop may lead to false positive as properties.prop may return Number object with value 0 and not undefined. So I end up using typeof… but then I realize this isn't really a gain regarding to hasOwnProperty…

Curious.

Justin Putney
Known Participant
November 6, 2018

Querying the properties object can be expensive (slow). That's why I try to avoid it. Every time you reference it, it gathers all the properties of the object (even if you only need to query one).

If I need to use it and I plan do it more than once, I'll store it and reuse it, ​e.g.,

var props = object.properties;

if(props.prop1)...

if(props.prop2)...

Community Expert
October 18, 2018

Thank you very much, Gregor!

Especially for the chm version.

Regards,
Uwe

Loic.Aigon
Legend
October 18, 2018

Hi grefel

Thanks for the good work !

Guys, how could we show our gratitude, paypal donation ?

grefel
Community Expert
grefelCommunity ExpertAuthor
Community Expert
October 18, 2018

Loic.Aigon  schrieb

Hi grefel

Thanks for the good work !

Guys, how could we show our gratitude, paypal donation ?

You're welcome. Give the next person a

Community Expert
October 18, 2018

Hi Gregor,

just looked into all the preferences for application.

There is one listed under Objects, LayoutAdjustmentPreference, that cannot be found if I click the link.

Checked with the ESTK running a for x in app loop targetting InDesign CC 2019.

It seems that layoutAdjustmentPreferences is missing in the list of properties that my loop gathered.

My assumptions on that:

There is a new feature named Adjust Layout with CC 2019.

( I'm looking for a way to turn it off by default for the Margins And Columns menu when no document is open. )

It seems that the old Layout Adjustment was dropped with CC 2019 and the new Adjust Layout feature with CC 2019 cannot be controlled with preferences from object app. Checked back with InDesign CC 2018.1 where LayoutAdjustmentPreference is present for object app.

Regards,
Uwe

Jongware
Community Expert
Community Expert
October 18, 2018

A CHM version! (But the zip also includes the HTML. As it's also a separate download, perhaps you could remove it from there.)

grefel
Community Expert
grefelCommunity ExpertAuthor
Community Expert
October 18, 2018

A CHM version! (But the zip also includes the HTML. As it's also a separate download, perhaps you could remove it from there.)

Done. Sorry for that. I don't use CHM and just run a ready made CHM process from oxygen. I hope it works altogether...