Replace Text After Find
Thanks to our Frame experts, I've developed a script that finds all occurances of a word or string in a document. When found, I want to replace the word and display it as a Track Text Edit. I'm running into two problems. 1) After enabling Track Text Edits and running the script, all change appear as normal text; not Track Text Edits. 2) The beginning offset of the text range is correct, but the doc.Clear and doc.AddText leaves the last character of the found text after the replacement text is added; e.g., foundText = "widge"; replacement = "WIDGE"; result = "WIDGEe".

