以前作ったスクリプトですが…
WinXP、CS3で動作確認しています。
var myDoc = app.activeDocument;
var myStory = myDoc.stories;
for (i = 0; i < myStory.length; i++) {
var myChara = myStory[i].characters;
gomiTori(myChara);
var myTable = myStory[i].tables;
for (j = 0; j < myTable.length; j++) {
for (k = 0; k < myTable[j].cells.length; k++) {
var myChara = myTable[j].cells[k].characters;
gomiTori(myChara)
}
}
}
function gomiTori(myChara) {
for (var n = myChara.length -1 ; n > -1; n--) {
if (myChara[n].contents == String.fromCharCode(65279)) {myChara[n].remove();}
}
}
[13399] dot (2012/01/13 Fri 15:19)