解決済み
How to find and change tint value of "black" color swatch including masterPage contents
I was trying to find and change tint value of black color from '60' to '70' .Below code was working fine with contents of page items but the changes were not reflected in masterPage contents. So i tried as like below but this was working for me sometimes in indesign 2021 but it was not working in any other indesign versions like 2019 or 2022. Please help me with this!
FindChangeTextOption.includeMasterPages = true;
app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;
app.findTextPreferences.fillColor = 'Black';
app.findTextPreferences.fillTint = 60;
var foundItems = app.activeDocument.findText(true);
app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;
for (var f = 0; f < foundItems.length; f++) {
foundItems[f].fillTint = 70;
}
