3 Replies Latest reply on May 18, 2012 9:28 PM by Gupthika

    Remove empty object frame

    Gupthika

      How to remove empty object frame.(rectangle without image)

        • 1. Re: Remove empty object frame
          [Jongware] Most Valuable Participant

          Select it with the black arrow, then press "Delete".

           

          Is this a scripting question? What language? What version of ID? What have you tried so far, and where do you get stuck?

           

          Do you need someone to write a script for you? Are you willing to pay for it?

          • 2. Re: Remove empty object frame
            Gupthika Level 1

            I try the below code but it delete tables inside rectangle. i tried in javascript.

             

            var doc = app.activeDocument;

            var myPages = app.activeDocument.pages;

             

                for (var p = 0; p < myPages.length; p++)

                { 

                                     var myGraphicFrames = app.activeDocument.pages[p].rectangles;

                                     for (j = myGraphicFrames.length - 1; j >= 0; j--)

                                     {

                                               if (myGraphicFrames[j].graphics.length == 0)

                                               {

                                                         app.selection = myGraphicFrames[j];

                                                         alert (app.activeWindow.activePage.name);

                                               }

                                     }

                      }

            • 3. Re: Remove empty object frame
              Gupthika Level 1

              Hi Friends,

               

              is there any other way to remove empty frame?

               

              Thanks,

              Gupthika