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

InDesign ExtendScript: Unable to set column count when creating Text Frame

Community Expert ,
Sep 16, 2019 Sep 16, 2019

Scripting in JSX, I am trying to set the number of columns and gutter width of a text frame I am creating, but the column width is not taking. The frame is being created with the proper bounds, but alas, not the columns. Any thoughts? Thanks (also, miss the old forums...)

pageRef.textFrames.add({
        geometricBounds: [0.84, 0.5, 10.4, 8],
        textColumnCount: 4,
        textColumnGutter: 0.1667,
        name: "testFrame",
      });
var tf = doc.textFrames.itemByName("testFrame");

 

TOPICS
Scripting
984
Translate
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

Community Expert , Sep 16, 2019 Sep 16, 2019

textColumnCount is a property of textFramePreferences, and not of a textFrame. So I think it would be something like

 

tf.textFramePreferences.textColumnCount=4

 

Thanks (also, miss the old forums...)

 Me too...

 

Translate
Community Expert ,
Sep 16, 2019 Sep 16, 2019

textColumnCount is a property of textFramePreferences, and not of a textFrame. So I think it would be something like

 

tf.textFramePreferences.textColumnCount=4

 

Thanks (also, miss the old forums...)

 Me too...

 

Translate
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
Community Expert ,
Sep 16, 2019 Sep 16, 2019
That did the trick. I had gone down that rabbit hold, but got stuck on textFramePreference, sted Preferences. How on earth do I mark something as solved? ARGH.
Translate
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
Community Expert ,
Sep 16, 2019 Sep 16, 2019
Look at the bottom of the answer you want to mark correct, we have many options like Like, Translate, Correct Answer etc
Translate
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
Community Expert ,
Sep 16, 2019 Sep 16, 2019
All I see is LIke, Trasnlate, Report and Follow, or Edit Message.
Translate
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
Community Expert ,
Sep 17, 2019 Sep 17, 2019
LATEST

Hi Brian,
I think, in the new forums the OP cannot mark a post as "Correct".

Only people that are moderators or admins. And Adobe staff.

 

Regards,
Uwe Laubender

( ACP )

Translate
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