Skip to main content
Participant
May 16, 2012
Question

Remove empty object frame

  • May 16, 2012
  • 1 reply
  • 1020 views

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

This topic has been closed for replies.

1 reply

Jongware
Community Expert
Community Expert
May 16, 2012

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?

GupthikaAuthor
Participant
May 16, 2012

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

.rectangles;

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

                         {

                                   if (myGraphicFrames.graphics.length == 0)

                                   {

                                             app.selection = myGraphicFrames;

                                             alert (app.activeWindow.activePage.name);

                                   }

                         }

          }

GupthikaAuthor
Participant
May 19, 2012

Hi Friends,

is there any other way to remove empty frame?

Thanks,

Gupthika