Back

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

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • seb400
    Member

    Thanks Jongware!

    As much as I'm struggling with (basic) scripting, I must admit to enjoying that sort of simple logic that just doesn't feature in my 'designer' mindset

    Steve

    seb400
    Member

    This little script will prove invaluable for me!

    I have amended above suggestions to give me the column widths for a particular table.

    However I would like to be able to define a 'row depth' for all the remaining rows of a table below the two specified rows.

    app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height = “15mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().rows[1].height = “8mm”;

    app.activeDocument.stories.everyItem().tables.everyItem().columns[0].width = “8mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[1].width = “36mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[2].width = “37mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[3].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[4].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[5].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[6].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[7].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[8].width = “7.5mm”;

    MTIA Steve

    seb400
    Member

    Thanks Jongware!

    As much as I'm struggling with (basic) scripting, I must admit to enjoying that sort of simple logic that just doesn't feature in my 'designer' mindset

    Steve

    seb400
    Member

    This little script will prove invaluable for me!

    I have amended above suggestions to give me the column widths for a particular table.

    However I would like to be able to define a 'row depth' for all the remaining rows of a table below the two specified rows.

    app.activeDocument.stories.everyItem().tables.everyItem().rows[0].height  = “15mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().rows[1].height  = “8mm”;

    app.activeDocument.stories.everyItem().tables.everyItem().columns[0].width = “8mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[1].width = “36mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[2].width = “37mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[3].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[4].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[5].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[6].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[7].width = “7.5mm”;
    app.activeDocument.stories.everyItem().tables.everyItem().columns[8].width = “7.5mm”;

    MTIA Steve

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