I have 100+ tables in CS4, each with 2 columns of merged cells that need to unmerge, but for some reason won't. Even if they did unmerge, I still need the text in each row to be back in it's original cell. Each number in the cell has a paragraph return after it except the bottom number.
It looks like this now:
|Header 1||Header 2||Header 3||Header 4||Header 5|
The first two colums need to look like this, leaving the other columns unchanged. Can someone tell me how to do this? I would be eternally grateful.
|Header 1||Header 2|
Just to show how to make it for 1st column, 1st merged cell:
(select some text box with one of those tables)
MT = app.selection.tables;
myContent = MT.columns.cells.contents.split("\r"); // if cells is a header
MT.columns.cells.contents = "";
// Assuming: number of cells merged is equal to number of paragraphs in unmerged one:
for (k = 1; k<myContent.length; k++)
MT.columns.cells[k].contents = myContent[k];
Thank you so much for trying to help me!
I'm getting the Syntax Error "Expected expression, property or key form,
etc. but found unknown token."
I have attached a screen shot of my AppleScript Editor window. I'm
relatively new to scripts so maybe I'm doing something wrong.
I may have to leave soon but will continue working on this tomorrowthanks
Thank you again!