1 Reply Latest reply on Mar 20, 2013 4:40 PM by MrTIFF

    Fit Frame to Content Multiple Images?

    evan a diaz

      I've got a document with the same tiny image linked thousands of times (check marks within tables), I need to "Fit Frame to Content" them all at once. Is this possible? (InDesign CS6 w/ Mac)

        • 1. Re: Fit Frame to Content Multiple Images?
          MrTIFF Level 3

          Seems like you might want to do something like this:

           

          var gArray = app.activeDocument.allGraphics;

          var nGraphics = gArray.length;

          for (var ix = 0; ix < nGraphics; ix++) {

                    var graphic = gArray[ix];

                    if (graphic.itemLink.isValid && graphic.itemLink.name == "CheckMark.tif") {

                              graphic.parent.fit(FitOptions.frameToContent);

                    }

          }

           

          Cheers,