Thanks Obi-wan! But it ticks me off that Adobe would put in a new feature that you can't change globally by find/replace.
If your paragraphs neither use nor need shading, why not turn it off in the styles?
That's the problem. It IS off in the styles, but every paragraph style has a + after it and it's because the paragraph shading was changed by hand throughout by the designer for some reason, even though shading isn't actually used anywhere in the job. It's not causing any problems, but I hate seeing +s on styles all over the place. You would think there'd be a better way than having to write a script to change it globally, though.
As long as there are no overrides that you wanted to keep, you can fix this with Find/Change
Leave the find and change fields blank. Pick your paragraph style in the Find Format section, and in the Change Format section. This re-applies the format and clears any overrides.
You're right! … as long as there're no overrides to be kept!
I think it would be relatively easy to script a "shading" clearing!
Oh, if I had set this one up myself, I wouldn't be having these problems! Unfortunately, the designer hand-styled so much that I don't dare do the find/replace on all the styles.
Still, I would like to see the ability to find/replace shading in an update. It's strange that they'd add that feature and then not have a way to globally search and replace it.
I haven't tested, but with AppleScript this should work:
tell application "Adobe InDesign CC 2015"
tell active document
set s to object reference of item 3 of every swatch
repeat with x in object reference of every paragraph of every story
set paragraph shading color of x to s
It'll work if we want to apply a same color [I've modified "Item 5" to get a "cyan 100"!] to all the shadings in the doc!
… I think about something more global:
Choose a specific para style (of course with shading in its basic settings) and reapply these "shading" settings to all the paras with this para style!
So, that means that the script must collect ALL the shading basic settings and apply all of them to each para with this para style!