0 Replies Latest reply on Feb 25, 2016 1:45 PM by Bo Dudek

    Place html or tagged text into textframe

    Bo Dudek

      Hi

       

      I have a script, which searches the active document for specific homemade tags. The search script works, and returns the frame, which contain my tags.

      I have e.g. the tag [content] and I want to replace this tag with either a string I have containing html or another string containing indesign tagged text.

       

      I haven't been able to find any way to place and show html properly formatted in a regular textframe - is this possible?

      Also, I haven't been able to find a way to place a string containing indesign tagged text, so I have instead made a function, which writes the indesign tagged text into an external .txt file.

      This external .txt file I want to place in my textframe, but I can't make the ordinary textframe.place(File('myfile.txt')); work.

       

      Any comments?

       

      Thanks a lot

      Bo Dudek

      Webdeveloper