Add metadata to individual page items?
We are using InDesign as part of a publishing workflow for a mobile publishing app. Each page element (e.g. Page, Image, Textbox) needs to be tagged with a unique identifier (a UUID), which we then export along with the document structure into a JSON file. We need to make sure that the UUID for each element, once set, doesn't change when the document is re-exported.
Currently we have to save the identifiers in a separate file, and then merge them into our JSON as a second step. This is an unwieldy and error-prone approach. Is there any way that metadata for individual pages / page items can be saved directly into an InDesign document (and subsequently queried) through javascript? Any suggestions would be greatly welcome!