5 Replies Latest reply on Jan 30, 2015 4:29 AM by Laubender

    How to (for cs6) with script automatic size the text frame


      I want when I click the selected object command auto Resize off

      the same command when I click one more time width only opened


      if(   //??

      app.activeDocument.selection[0].textFramePreferences.autoSizingType = AutoSizingTypeEnum.OFF;


      else(   //??

      app.activeDocument.selection[0].textFramePreferences.autoSizingType = AutoSizingTypeEnum.WIDTH_ONLY;

      app.activeDocument.selection[0].textFramePreferences.autoSizingReferencePoint = AutoSizingReferenceEnum.LEFT_CENTER_POINT;