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

Apply Vertical Justification in all text frames

Participant ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

Hi!

How can apply vertical justification in all text frames of my document?

I have this code of other topic:

var mySel = app.selection[0];

mySel.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;

But its works only on selected ones.

Thank you in advance!

TOPICS
Scripting

Views

765

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

Guide , Jul 17, 2017 Jul 17, 2017

use this..

var tfs = app.activeDocument.textFrames.everyItem().getElements(),  

    tf;  

 

while( tf=tfs.pop() )  

    tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;

Votes

Translate

Translate
Guide ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

here is the answer..

var tfs = app.activeDocument.textFrames.everyItem().getElements(),

    tf;

while( tf=tfs.pop() )

    tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;

from Re: Vertical alignment when the page content footnotes

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
Guide ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

Why it is getting moderated? Strange !!!

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
Guide ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

use this..

var tfs = app.activeDocument.textFrames.everyItem().getElements(),  

    tf;  

 

while( tf=tfs.pop() )  

    tf.textFramePreferences.verticalJustification = VerticalJustification.TOP_ALIGN;

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
Participant ,
Jul 17, 2017 Jul 17, 2017

Copy link to clipboard

Copied

LATEST

Thank you so much!

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