我想更改选定的文本填充颜色,下面发布的代码不起作用:
var newRGBColor = new RGBColor();
newRGBColor.red = convertedcolor['r'];
newRGBColor.green = convertedcolor['g'];
newRGBColor.blue = convertedcolor['b'];
var docSelected = app.activeDocument.selection;
for (j=0; j<=docSelected.length; j++){
textArtRange = app.activeDocument[j].textRange;
textArtRange.characterAttributes.fillColor = newRGBColor;
}