Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Define table row heights, column widths in styles somehow? #14323695
    Len Zigante
    Participant

    My apologies for adding to this thread.

    Thank you Theunis; what you provided more than covers what I am looking for – I’ll likely utilize your cell identification method in some future script. With a bit of tweaking I made your code do what I need. Here is the script incase anyone needs something similar without bothering to identify each cell in the table to be formatted :

    tableStyleName = ‘Geometry’; // name of the table(s) to be formatted (only)
    tablearray = app.activeDocument.stories.everyItem().tables.everyItem().getElements();

    for (t=0; t<tablearray.length; t++)
    {
    if (tablearray[t].appliedTableStyle.name == tableStyleName)
    {
    tablearray[t].rows.everyItem().height = “11.428pt”;
    tablearray[t].rows[0].height = “16.994pt”;
    tablearray[t].rows[1].height = “17.176pt”;
    }
    }

    in reply to: Define table row heights, column widths in styles somehow? #14323706
    Len Zigante
    Participant

    This article is almost exactly what I’ve been looking for. The only thing I need now is some way to only apply the cell size changes to tables that are of table style “Geometry”. Would someone here please explain how I should do this?

Viewing 2 posts - 1 through 2 (of 2 total)