0 Replies Latest reply on May 9, 2012 9:23 AM by KuddRoww

    Find/Change and Record Changes Script Help

    KuddRoww Level 1

      So I'm using a script to find certain strings, in this case it's a pairing of American and Canadian word equivalents,  and change them. Looks like this:

       

      app.findTextPreferences.findWhat = g.win.lstChanges.items[k].text;
      app.changeTextPreferences.changeTo = g.win.lstChanges.items[k].subItems[0].text;
      app.documents.item(0).changeText();

       

      Now my problem is that I would like to be able to log changes. My first thought is that I could simply change the object which changeText function runs on to a paragraph. Then verify whether or not the change has been made by comparing the paragraph before and after, if a change has occured then I would append the page number and the paragraph to a text file. Seems to me though there may be a more elegant way to go about this. Any suggestions?

       

      Thank-you,