6 Replies Latest reply on Aug 28, 2017 5:16 AM by alexandrel16871950

    fit frame to text automatically with AppleScript

    alexandrel16871950 Level 1

      Hi!

       

      I have a script that replace text frame content with new text, however sometimes, the text is longer than the text frame causing the text to be hidden.

       

      I saw that there is something like this for InDesign, but this doesn't work for Illustrator:

        tell textFrame to fit given frame to content

        end tell

       

      Is there something similar available for Illustrator on AppleScript?


      Note: I also saw the option with: Type > Area Type Options > Auto Size

       

      Thanks!