# InDesign Object Model

**URL:** <https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738>\
**Category:** InDesign\
**Created:** [March 31, 2024, 9:54am UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738 "2024-03-31T09:54:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [March 31, 2024, 9:54am UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738/1 "2024-03-31T09:54:33Z")

</div>

I’m confused.

Is the InDesign Extendscript Object Model here [https://www.indesignjs.de/extendscriptAPI/indesign-latest/](https://www.indesignjs.de/extendscriptAPI/indesign-latest/) the same as the InDesign UXP Object Model here [https://developer.adobe.com/indesign/dom/api/](https://developer.adobe.com/indesign/dom/api/)?

Is it that there is one InDesign Object Model, and the difference is just that with uxp we can use more modern javascript syntax? Or is it that there are two Object Models depending on whether we are writing extendscript or uxp?

Philip

---

<div class="post-metadata">

**Author:** ![Omachi](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/omachi/32/3188_2.png) [@Omachi](https://forums.creativeclouddeveloper.com/u/Omachi)\
**Post date:** [March 31, 2024, 12:08pm UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738/2 "2024-03-31T12:08:46Z")

</div>

InDesign has only one object model.  
As you can see from the ExtendScript to UXP ([https://developer.adobe.com/indesign/uxp/resources/migration-guides/extendscript/](https://developer.adobe.com/indesign/uxp/resources/migration-guides/extendscript/)) page, porting from ExtendScript to UXP Script requires some rewriting. Just because it’s there doesn’t mean there are any changes to the DOM.

Note that the DOM is  
[InDesign ExtendScript API Adobe InDesign 2024 (19.2.0.46) Object Model](https://www.indesignjs.de/extendscriptAPI/indesign-latest/) is the correct one.  
There are a few missing [https://developer.adobe.com/indesign/dom/api/](https://developer.adobe.com/indesign/dom/api/), but most are just missing descriptions. However, there may be some unimplemented features, but you won’t know until you try them.

---

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [March 31, 2024, 1:17pm UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738/3 "2024-03-31T13:17:45Z")

</div>

@Omachi, Thanks very much. That clarifies it for me.

Philip

---

<div class="post-metadata">

**Author:** ![hauke354](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@hauke354](https://forums.creativeclouddeveloper.com/u/hauke354)\
**Post date:** [April 3, 2024, 10:01am UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738/4 "2024-04-03T10:01:45Z")

</div>

However we should be aware that the APIs are different. Many functions of the UXP “indesign” module are identical which those of ExtendScript and I still use the old documentation for programming in that area (because it is so much better structured on Gregor’s [indesignjs.de](http://indesignjs.de)). But sometimes that fails, because the API is different.

---

<div class="post-metadata">

**Author:** ![philipbuckley](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@philipbuckley](https://forums.creativeclouddeveloper.com/u/philipbuckley)\
**Post date:** [April 3, 2024, 4:48pm UTC](https://forums.creativeclouddeveloper.com/t/indesign-object-model/7738/5 "2024-04-03T16:48:23Z")

</div>

@hauke354 Thanks. I note your points. I’ll be alert to differences in the APIs.

Philip
