• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to enable Text Frame Auto Size Option when scripting an Object Style

Explorer ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

Hi!

I'm stuck when trying to enable autosize options when scripting an object style.

I can change the settings inside of the option, but an unable to enable to option. Do you have ideas what line I'm missing?

Thanks!

Christopher

var myPlainTextObjectStyle = myDocument.objectStyles.add();

myPlainTextObjectStyle.properties = {

  name: "Book Name Frame",

  enableTextFrameBaselineOptions: true,

  enableTextFrameGeneralOptions: true,

  enableAnchoredObjectOptions: true,

  enableFrameFittingOptions: true,

  enableTextFrameAutosizeOptions: true,

  enableParagraphStyle: true,

  enableStoryOptions: true,

  enableTextWrapAndOthers: true,

  enabledStroke: true,

  strokeWeight: 0,

  textFramePreferences : {  

      autoSizingType: AutoSizingTypeEnum.HEIGHT_ONLY,

      autoSizingReferencePoint:AutoSizingReferenceEnum.TOP_CENTER_POINT

      },

  textWrapPreferences: {

  textWrapMode: TextWrapModes.JUMP_OBJECT_TEXT_WRAP

  }

}

Screen Shot 2017-03-29 at 5.35.08 AM.png

TOPICS
Scripting

Views

462

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Mar 29, 2017 Mar 29, 2017

Hi,

Use this.

enableTextFrameAutoSizingOptions: true;

Thanks

Prabu

Votes

Translate

Translate
Engaged ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

Hi,

Use this.

enableTextFrameAutoSizingOptions: true;

Thanks

Prabu

Thanks,
Prabu
Design smarter, faster, and bolder with InDesign scripting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

Not sure why the above my post being moderated?

Thanks,
Prabu
Design smarter, faster, and bolder with InDesign scripting.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 29, 2017 Mar 29, 2017

Copy link to clipboard

Copied

LATEST

Thanks!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines