4 Replies Latest reply on Feb 17, 2014 12:05 AM by screenName

    How to get Track Changes inserted / deleted text?

    screenName

      Hi,

       

      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';
      }
      alert(myString);
      

       

      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!