4 Replies Latest reply on Dec 28, 2010 7:02 PM by LinusWang

    How to add colored texts after current selecton


      I want to convert the selected numbered texts from "mm" to "inch", for example:

      (34)  changed to (34 1.34"),

      How can I change to color of 1.34“ to other settings (see C=100).

      But I don't how to change to color in the following scripts:

      Need help here, thanks!


              mm = app.activeDocument.selection.contents;


              val = Number(mm)/25.4;


              val = Math.round(100*val)/100;


              mm = (mm+ " " +String(val)+"\"");