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 Level 1




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


      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:


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