5 Replies Latest reply on Sep 14, 2018 9:26 AM by SamuelC0

    How to get Track Changes inserted / deleted text?




      I read the Adobe InDesign CS6 JavaScript Scripting Guide and wrote a JavaScript as below:


      var myChanges = app.documents.everyItem().stories.everyItem().changes;
      var myString = '';
      for (var i=0; i<myChanges.length; i++) {
              var myChange = myChanges[i];
              myString += myChange.userName + '\t';
              myString += myChange.date + '\t';
              myString += myChange.changeType + '\n';


      My script can get the user name, date and change type.


      But the guide has not cover on how we can get the insert / delete modifications?


      Many Thanks!