Custom data inside IDML via scipting
- This topic has 1 reply, 1 voice, and was last updated 6 years, 11 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Custom data inside IDML via scipting
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Custom data inside IDML via scipting
Tagged: custom data, IDML, Scripting
I’m looking for a way to inject custom data inside IDML files via scripting, but I’m 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).
For anyone who has the same problem. I’ve found the solution: the TextFrame object has a “label” property and you can put data in it that will be saved in the IDML file
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!