I’m looking for a way to inject custom data inside IDML files via scripting, but I’m not sure that it’s possible.
The IDML specification states “IDML supports the inclusion of new scripting objects and properties added by InDesign plug-ins.”, but there is no mention about scripting.
I already tried adding a custom variable to the TextFrame object but with no luck (apparently the object structure is immutable).
Is there any way to do this without having to write a plugin?
It should be possible to add custom data to XMP (https://indisnip.wordpress.com/2010/09/07/storing-custom-data-into-indesign-file-xmp/) but that would require a lot more work because I would have to reference every object in some way and their custom values. Plus, I have to check XMP specs because I’m not sure if there are limitations in size for custom data (that could be a problem).