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

Justify vertically Script

Participant ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

lik.pngscreeennn.pngI want to apply this option to tables that contain many cells via script. Can you give me an idea for the script?"

TOPICS
How to , Scripting

Views

103

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
Community Expert ,
Jun 28, 2024 Jun 28, 2024

Copy link to clipboard

Copied

I'm sure a script could be crafted, but the better approach/better basis for one would be to use Cell Styles that implement vertical justification. Just ripping through a doc applying the characteristic as an override is... no real advance.

 

That is, in all approaches I can think of, unless it's every cell in your doc, you have to select the cells anyway, and then apply or allow the script. Simply going through applying a cell style or two would take little longer and give you the doc structure to tweak the formatting instead of just running another bulldozer through it.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.0 ┊ (Amazon) ┊┋

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
Community Expert ,
Jun 29, 2024 Jun 29, 2024

Copy link to clipboard

Copied

LATEST

Hi @aghanjar16430960 , This would set all of the cells in your document to justify vertically:

app.documents[0].stories.everyItem().tables.everyItem().cells.everyItem().verticalJustification = VerticalJustification.JUSTIFY_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