3 Replies Latest reply on Sep 5, 2014 11:46 PM by ASHOK KUMAR

    Add xml tag to specific words in a text frame

    JulianFT Level 1

      Dear all,

       

      I'm pretty sure this can't be too much of a hassle, but after hours of experimenting, searching and reading I can't seem to look at it from the right angle. I'm trying to find a way to search for a specific word ('Figure', in my case) in a given text frame, and add a corresponding XML tag to it automatically. I've found plenty of information on how to apply it to a page item as a whole, but from there no approach seems to work. Seeing as I'm fairly new to InDesign scripting, any nudge in the right direction would be an immense help.

       

      Kind regards and thanks in advance,

       

      Julian