8 Replies Latest reply on Jun 2, 2009 1:42 AM by jaguar 0006

    AS: InDesign CS4: Import text without losing the styles

    jaguar 0006

       

      Hello,

       

      I try to fill, with an AppleScript, a text frame that contains 4 lines of text with different styles:

      pbm-as-1.jpg

      I use for this:

       

      tell text frame "katex_set_1" to set contents to "1250\rNew text one\nNew text two\r300 kg"

       

      But then, I lose all the styles:

      pbm-as-2.jpg

      Does somebody have an idea to do this without losing the styles?

      Thanks