4 Replies Latest reply on Jul 4, 2012 6:25 AM by Vamitul

    Help! Getting the index of a Character from the Characters collection

    Vamitul Level 4

      so, in a script i need to remove the text from the begining of the paragraph until the first tab (or dot or colon or "something") charater as simple and as fast as posible.

       

      i was hoping for something like

       

      myText=myParagraph.characters.itemByRange(0,"\t");
      myText.remove();
      

       

      Ofcourse i can use grep, but it has it's problems, and i was hoping i don't have to (especialy since the script will have to do this for 400+ times.

       

      Any help?