2 Replies Latest reply on Jul 13, 2009 5:49 AM by Techi Panda

    need help converting text to table

    Techi Panda Level 2

      Hi scripters

       

      here I am trying to convert selected text to table my code is like this

       

      myText=app.selection[0].contents;

      myTable = myText.convertToTable("\t", "\r",);

       

      I am using ID CS2 windows xp

       

      While i am executing this code the below error occurs

       

      ---------------------------
      Adobe InDesign
      ---------------------------
      JavaScript Error!

      Error Number: 24
      Error String: myText.convertToTable is not a function
      Line: 3
      Source: myTable = myText.convertToTable("\t", "\r",);
      ---------------------------
      OK  
      ---------------------------

      can anyone pls  advice me on this

       

      regards

      a r u l