2 Replies Latest reply on Dec 22, 2014 8:08 AM by BEGINNER_X

    Duplication of Image

    BEGINNER_X Level 3

      Hi All,

       

      Could you help to find the duplication of images in the document.

       

      i.e., need to find the "index2.jpg"

       

      Screenshot is below:

      Screen Shot 2014-12-22 at 11.09.39 AM.png

       

      Thanks in advance

      Siraj

        • 1. Re: Duplication of Image
          Chinnadk Level 4

          Hi Siraj,

           

          Try this,

           

          var doc = app.activeDocument,
              _links = doc.links.everyItem().getElements(),
              linknames = [];
          for(var i =0;i<_links.length;i++)
          {
                  linknames.push(_links[i].name)
              }
          linknames.sort(); 
          var found = [];
          for(var i=0;i<linknames.length-1;i++)
          {
                  if(linknames[i+1]==linknames[i])
                  {
                          found.push(linknames[i]);
                      }
              }
          alert(found);
          

           

          Regards,

          Chinna

          • 2. Re: Duplication of Image
            BEGINNER_X Level 3

            Hi Chinna,

             

            Thank You... Working like a charm.

             

            With Thanks

            Siraj