Skip navigation
Currently Being Moderated

Indesign XML Tree browsing in Palette

May 22, 2012 3:09 AM

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

 

Shaji

 
Replies
  • Currently Being Moderated
    May 27, 2012 3:38 PM   in reply to M V SHAJI

    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.

     

    Dirk

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points