6 Replies Latest reply on Jan 22, 2009 11:10 AM by Loic.Aigon

    [CS3 JS] Add formatted text

    Level 1
      I'm working on a kind of templating script. This script adds text to the document depending on some input data, so the text can be almost anything.
      My question is whether there is a convenient way to add formatted text to eg. a given text frame. By formatted I mean a character style applied to it.

      I can think of a solution like inserting the text, then find it and then apply the character style.

      Is there a simplier way, by which I mean a built in function or so?
      Or has someone already written such a function?
      If not then this work is waiting for me, and when ready I'll share the results :)

      Thanks in advance for your help!