2 Replies Latest reply on Jul 26, 2009 8:30 PM by dmitry.kalashnikov

    How can I find the text only in the custom text frame?

    dmitry.kalashnikov

      Well guys, I have a problem.

       

      I have such code:

       

      app.findTextPreferences.findWhat = "text";
      text = app.activeDocument.findText();

      position = text[0].insertionPoints[0].index

       

      in the variable "position" I get  global(not depending in which frame the text is) position(number of chars) of the found text, but I want to get the number of the frame where is text was found! Or how can I find only in the custome frame?

       

      Please, help me