2 Replies Latest reply on May 13, 2016 9:18 AM by Laubender

    Adding Track Changes to Document?

    cbishop01 Level 2

      I got a Track changes script from this form i was wondeing if there was a way to make it put my information in a text box about .75in from the top of my documents?Screen Shot 2016-05-13 at 9.25.21 AM.png

      Below is the script i'm using

      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);  
      
      
      
        • 1. Re: Adding Track Changes to Document?
          cbishop01 Level 2

          Also why does this not show when a change is made to an  image?  it keeps saying there's changes to text.  Not a big deal but just wondering.  Because in my thinking the app.documents.everyItem() should track everything and display anything that has been changed.  am i wrong on how i'm thinking on this>

          • 2. Re: Adding Track Changes to Document?
            Laubender Adobe Community Professional & MVP

            No. I think, it would not track everything.

             

            See the three different kinds of change.changeType :

             

            ChangeTypes.INSERTED_TEXT

            ChangeTypes.DELETED_TEXT

            ChangeTypes.MOVED_TEXT

             

            If you exchange an image inside its container frame, even when it's anchored, should not count as change.

            That's just my assumption, I did not do anything with change yet.

             

            Uwe

            1 person found this helpful