Custom data inside IDML via scipting

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Custom data inside IDML via scipting

Viewing 1 reply thread
  • Author
    Posts
    • #92823

      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).

    • #94718

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
>