4 Replies Latest reply on Jul 17, 2017 5:46 AM by Ribnog

    Fitting grouped and anchored text frames

    Ribnog

      Hi,

      I’m a newbie in Javascript and tried to wrote a simple script to fit all document text frames to content:

       

      var myDocument = app.activeDocument;

      myDocument.pages.everyItem().textFrames.everyItem().fit(FitOptions.FRAME_TO_CONTENT);

       

      Works with normal frames, but I dont know how can I apply this to grouped and anchored text frames too.

       

      Here’s my scenario:

      https://www.dropbox.com/s/4ppr1vtkwqqg7lh/example.jpg

       

      Help me please!