2 Replies Latest reply on Aug 16, 2010 7:31 AM by GordonEddey

    How does one use \r between two placed text files in a text frame

    GordonEddey Level 1

      Hi, this may be a basic question, but I am stumped. I want to place a whole series of small files in a single text frame. The files place as a single paragraph in the script as the CS3 script stands. I know I need to add \r but I am unsure of the syntax.
      I have tried to place \r between the two placed lines, put it in quotes, put it in curly braces, and then turned to you all for help. Ultimately the script will be used to place both Word files and Excel tables. Please help and thank you in advance.
      docEdd = app.documents.add();
      placed_3to10(docEdd)
      function placed_3to10 (doc)
      {
      //PG 1
      textEdd = docEdd.pages.item(0).textFrames.add
        ({
      geometricBounds: [10,15,100,200],
      textFramePreferences: {textColumnCount: 2, textColumnGutter: 6}, 
        })
      //textEdd.place(File('~/Documents/1add2doc/place1.docx'));
      textEdd.parentStory.insertionPoints.item(0).place(File('~/Documents/1add2doc/place1.docx') );
      textEdd.parentStory.insertionPoints.item(-1).place(File('~/Documents/1add2doc/place2.docx' ));