Known Participant
June 7, 2023
Question
UXP: list json for document contents / structure
- June 7, 2023
- 2 replies
- 915 views
I've made a script in CEP/jsx that lists the document structure of a given node in the document. E.g. I can ask for "app.activeDocument.graphicLines" and get back a JSON for all lines in the document (se screenshot "CEP_getJson_graphicLines.png"), or if I want the whole document I ask for "app.activeDocument.pageItems" (see screenshot "CEP_getJson_pageItems.png")
I want to do the same in UXP, i.e. get back every item / node in the document structure in JSON, but no luck so far
Has anyone done this?
