10 Replies Latest reply: Mar 31, 2012 11:52 PM by michael.shen RSS

    why can not create a new line ?

    michael.shen Community Member

      hi guys,

      i run the below code

      script = '';

      script += "var docRef = app.documents.add(800,600, 300);\n";

      script += "var myLayer8 = docRef.artLayers.add();\n";

      script += "myLayer8.kind = LayerKind.TEXT;\n";

      script += "myLayer8.textItem.font='FolioBT-BoldCondensed';\n";

      script += "myLayer8.textItem.size='15.1848010253906 pt';\n";

      script += "var textColor8 = new SolidColor;\n";

      script += "textColor8.rgb.hexValue = '000000';\n";

      script += "myLayer8.textItem.color = textColor8;\n";

      script += "myLayer8.textItem.contents = 'fsafafa \\r fasda';\n";

       

      var bt = new BridgeTalk();

      bt.target = "photoshop";

      bt.body = script;

      bt.send();

       

      the result is this:

       

      QQ截图2jpg.jpg

       

      but, i want to like this , how to do it and does anybody can help me? Thanks!

      QQ截图3.jpg