2 Replies Latest reply on Oct 6, 2010 9:27 AM by JohnDevlon

    [CS4][JS] tag text selection and add attributes

    JohnDevlon Level 1



      I would like to add a tag to a selected text and searching this forum I found a great solution:


      app.activeDocument.xmlElements.item(0).xmlElements.add ("Price", app.selection[0]);


      But does anyone know how to tag a selection and add several attributes at the same time?