4 Replies Latest reply on Feb 19, 2012 11:48 PM by John Hawkinson

    Add XML tag (all power math equation) after/before

    snegig Level 1

      Hi all,


      I have JS code written by (Sir John Hawkinson "http://forums.adobe.com/thread/938603?tstart=90") its work fine. Actually script do add XML tags [&x+2&] after/before this power math equation.

      My problem when i run this script i am select matter (power math equation) one by one is that possible when i select few paragraph script add automatic xml tags select all "power math equation" matter.

       

       

      script code below:

       

      var d=app.activeDocument,

          root=d.xmlElements[0],

          ie = root.xmlElements.add("inlineequation", app.selection[0]),

          im = root.xmlElements.add("inlinemediaobject", ie.texts[0]),

          to = root.xmlElements.add("textobject", im.texts[0]);

      to.xmlAttributes.add("role", "xpressmath");

       

      Thank's

      Regard

      snegig