Thomas Ebert
Jul 29, 2017 · 1 min read

Thanks for this great script! :-)

Two things I needed to understand on top of reading your article were:

  1. The script simply needs to go into the scripts folder and the parameters need to be adjusted inside the script-file. (At least, if you don’t have ExtendScript SDK.)
  2. It was a bit tricky to create the flat XML. I created a JSON first, because it is more familiar to me. But it is difficult to have an object (that will later be converted to JSON) with multiple identical identifiers, which you need for the flat XML. As a solution, I created a JSON with unique identifiers like “0.name”, “1.name” and removed the numbers with a regex from the XML-file after the conversion. One other thing I stumbled upon with the XML was: You need to have a root node in your XML for it to be valid. This root tag also needs to be created in InDesign and all tags like name, subtitle, etc. need to be nested inside this root node.

Aside from these gotchas, the process was quite straight forward and saved me some valuable time. Thanks a lot for sharing!

    Thomas Ebert

    Written by

    te-online