Jump to content

Buford T. Justice

Members
  • Content Count

    4
  • Joined

  • Last visited

  • Days Won

    1

Buford T. Justice last won the day on July 26 2020

Buford T. Justice had the most liked content!

Community Reputation

1 Neutral

1 Follower

About Buford T. Justice

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Folks, Finally an experienced InDesign scripter helped me to find a solution that works perfectly 👍 This is the correct JS syntax for text alignment in the specific table cell: curTable.columns[-2].cells.everyItem().texts.everyItem().justification = Justification.RIGHT_JUSTIFIED; The missing key was the relation to the cell itself. After adding the code the (horizontal) 'justification' property is working now. He also recommended an InDesign specific resource website providing a complete overview to other suitable commands / properties - here at the 'text' section: https:
  2. Hello dsonesuk, Thank's for your reply. I attached a screenshot of a sample table from my document. It has five columns - the first (counted from left) contains placeholders for images, the four others text and numbers. The screenshot shows that the script is applied to the second last column when running the 'select' command for example. The assignment to the correct column already works: curTable.columns[-2].select(); //select the cells in the column I hope I didn't get you wrong but I don't understand why you think there is an index problem. I'm able to execute the commands I li
  3. curTable.columns[-2].verticalJustification = VerticalJustification.CENTER_ALIGN; //center cell vertically curTable.columns[-2].width = 100; //set width to 100 mm curTable.columns[-2].leftInset = 10; //add 10 mm space to left margin curTable.columns[-2].remove(); //delete the whole second last column curTable.columns[-2].select(); //select the cells in the column Hi shaili_shah, thank you for your suggestion. I tried to implement the css code in mine but it doesn't work. I tried a lot but couldn't find a way to combine the syntax. I guess in order to get this css working the whole scr
  4. var curDoc = app.documents[0]; var allTables = curDoc.stories.everyItem().tables.everyItem().getElements(); for ( var i = 0; i < allTables.length; i++ ) { var curTable = allTables[i]; if ( curTable.columns.length == 5) { curTable.columns[-2].verticalJustification = VerticalJustification.CENTER_ALIGN; //HERE SHOULD BE THE CODE FOR ALIGNING TEXT IN SECOND LAST COLUMN TO RIGHT } } Hello W3Schools community, I need your help on a final step in my Javascript code for an Adobe InDesign document. In the InDesign document there are many tables that have all five columns. My
×
×
  • Create New...