how to define if (myCells[n].appliedCellStyle = xxxx)?
Hi experts,
my script like this:
var docs = app.documents;
for (var i = docs.length-1; i >= 0; i--) {
var myCells = docs.stories.everyItem().tables.everyItem().cells.everyItem().getElements();
for(var n = 0; n < myCells.length; n++)
{
var mCellStyles = docs.allCellStyles;
for ( var k = 0; k < mCellStyles.length; k++) {
myCellstyle = mCellStyles
.name.match(/^99|8|7|6/); if (myCells
.appliedCellStyle = myCellstyle) { myCells
.contents = " " }
}
}
}
aim to let if the cell which applied cell styles name.match 99 98 97 96
the contents = " "
but it seems not working,
could someone please tell me how to fix it.
thanks
regard
John
