1 Reply Latest reply: May 27, 2012 3:38 PM by Dirk Becker RSS

    Indesign XML Tree browsing in Palette

    M V SHAJI Community Member

      Hi all,


      This is a general discussion which I would like to know.


      Is it possible through scripting to read the XML tree in Indesign and reflect in a "palette" or an "XML Editor".



        • 1. Re: Indesign XML Tree browsing in Palette
          Dirk Becker Community Member

          Short answer: yes


          Longer answer:


          -- export the root element of the active document

          tell application "Adobe InDesign CS4"

            export XML element 1 of active document format XML to POSIX file "/tmp/tmp.xml"

          end tell


          -- open in the default XML editor

          tell application "Finder"

                    open POSIX file "/tmp/tmp.xml"

          end tell

          Both technologies "ScriptUI" and "CSXS" / Flex also have palette windows and tree view widgets.