6 Replies Latest reply on Jun 30, 2016 6:34 AM by cbishop01

    Need help finding Track Changes Script.

    cbishop01 Level 2

      Hi i saw a track changes script on here a few months back that would display the Changes with Colors in the Document and not through story editor.  Can someone help me find this.  I must be searching The wrong key words.  I cannot seem to locate it.  Thank you.

        • 1. Re: Need help finding Track Changes Script.
          karthiks94217840 Level 2

          Hi CB,

           

          This script create by TPK

           

          Try this sample code below:

           

          1. theTextR = app.selection[0].parentStory.textStyleRanges;   
          2. try   
          3. {   
          4. app.activeDocument.colors.item("PositiveOvertracked").name;   
          5. }   
          6. catch (myError){   
          7. app.activeDocument.colors.add ({name:"PositiveOvertracked",space:ColorSpace.CMYK,colorValue:[100,15,100,0]});   
          8. }   
          9. try   
          10. {   
          11. app.activeDocument.colors.item("NegativeOvertracked").name;   
          12. }   
          13. catch (myError){   
          14. app.activeDocument.colors.add ({name:"NegativeOvertracked",space:ColorSpace.CMYK,colorValue:[15,100,100,0]});   
          15. }    
          16.    
          17. var i=0;   
          18. while (i<theTextR.length)   
          19. {   
          20.         if (theTextR[i].tracking >= 15)   
          21.           
          22.         {   
          23.         theTextR[i].fillColor = "PositiveOvertracked";   
          24.         i++;   
          25.           
          26.         } 
          27.         else if (theTextR[i].tracking <= -15
          28.         { 
          29.             theTextR[i].fillColor = "NegativeOvertracked";   
          30.         i++;   
          31.              
          32.             } 
          33. else   
          34.   { 
          35.    
          36. i++;   
          37.    
          38.   } 
          39. }    
          40. alert("The tracking value more than +15  and -15 is highlighted in PositiveOvertracked and NegativeOvertracked color respectively.");   

           

          Thanks

          • 2. Re: Need help finding Track Changes Script.
            cbishop01 Level 2

            Thanks for your reply.  This one does not seem to work for me.  It does not show the colors in the document itself. 

            • 3. Re: Need help finding Track Changes Script.
              tpk1982 Level 4

              The specified item was not found.

              • 4. Re: Need help finding Track Changes Script.
                tpk1982 Level 4

                The specified item was not found.

                • 5. Re: Need help finding Track Changes Script.
                  cbishop01 Level 2

                  No both of these we have working.  There was another Script i came across on here that Placed the colors of the Tracked changes in the actual Document itself so you didnt have to open story editor at all.  The 2 above that i asked about a while ago was just to have The tracking CHanges Turn on automatically.  Those are implemented now.  All my questions about turning on Tracking Changes we've answered.  I just want the Results of the Tracking Changes to Display in the Document W/O using story editor.

                  • 6. Re: Need help finding Track Changes Script.
                    cbishop01 Level 2

                    The script (I'm pretty sure that i saw on here. ) did something like the CtrlChanges Plugin.