7 Replies Latest reply on Jun 4, 2015 6:39 AM by selvam214

    Copy line's text from the cursor line

    selvam214 Level 1

      Hi All,

      I need to copy the texts from the cursor clicked line. I have tried the below code, but not working. Please help for this.



      kur = new Array;

      myDoc = app.activeDocument;

      var sel = app.selection[0].lines[0].contents;//but the alert working fine




      app.paste(kur);//done only the selection text



      Cursor blinked this line:

      Screen shot 2015-06-04 at 4.20.02 PM.png


      Select the line and copy and paste separate frame:

      Screen shot 2015-06-04 at 4.17.44 PM.png