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

To set left indent to a table cell

New Here ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

Hi,

I have to set left indent value as "1 mm" for a particular column or a cell in a table using scripts. How can I set the indent value for my table. Kindly guide me.

Regards,

Revathi

TOPICS
Scripting

Views

896

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 , Jun 22, 2017 Jun 22, 2017

HI..

This one change for all colum cell to 1mm.. change as per your requirement

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm";

Votes

Translate

Translate
Guide ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

HI..

This one change for all colum cell to 1mm.. change as per your requirement

app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm";

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
New Here ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

Thanks for your reply.

But I want set Indent for a particular column in a table. Kindly guide me.

Regards,

Revathi

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 ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

Are you going to select the column or need to specify the column in script?

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
New Here ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

Hi,

I am going to specify the column in the script.

Regards,

Revathi

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 ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

The below code will change the first table in the document, second column... so if you want some other column change the values

app.activeDocument.stories.everyItem().tables[0].columns[1].cells.everyItem().paragraphs.everyItem().leftIndent= "1 mm"; 

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
New Here ,
Jun 22, 2017 Jun 22, 2017

Copy link to clipboard

Copied

LATEST

hi,

Thanks for your reply to worked for me. It's working fine.

Regards,

Revathi

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