divyanshm
divyanshm

Reputation: 6800

ExtendScript: How to add InDesign DOM to ExtendScript Object Model Viewer?

I have just started with Adobe InDesign scripting.

I saw at another developer's windows system - he would click on Help->Object Model Viewer (Adobe ExtendScript Toolkit) and there were multiple object models listed and he could select inDesign DOM from there.

I just installed InDesign CS6 and my ESTK object model viewer shows only 3 models - i) Core JS classes ii) scriptUI classes iii) adobe bridge c6 object model

How can I add InDesign DOM to the list?

Upvotes: 1

Views: 2989

Answers (2)

dln385
dln385

Reputation: 12100

First create a new file named connect_to_estk.jsx with the following contents:

$.writeln("Connected to " + app.name + " " + app.version);

Then move the file to C:\Program Files (x86)\Adobe\Adobe InDesign CS6\Scripts\Scripts Panel or similar.

Next open InDesign and hit Ctrl+Alt+F11 to show the Scripts panel. (Or select Window > Utilities > Scripts.)

In the Scripts panel, expand the Application panel, right-click on connect_to_estk.jsx, and select "Run Script".

The ESTK window will now open if it wasn't open already. The "JavaScript Console" pane in the ESTK will say something like Connected to Adobe InDesign 8.0.0.370.

In ESTK, select File > New. Expand the drop-down menu in the top-left corner. There should be an entry for InDesign. Select it. The link on the left should be green. If not, click it.

Finally, open the Object Model Viewer. The Indesign DOM should now be in the drop-down menu.

Upvotes: 0

Dirk
Dirk

Reputation: 666

Choose InDesign from the target dropdown and press the red connect button. InDesign should create the object model xml file on first contact. If that does not help, execute any script from within ESTK, e.g. $.writeln(app.name);

Upvotes: 0

Related Questions