Is there a way to turn ruleAbove/ruleBelow on and off using the FindChangeByList script?
If the active paragraph style has a ruleBelow defined but turned off, it seems I should be able to turn it on with a statement like this in the FindChangeList.txt file:
grep {findWhat:"(some unique string)"} {ruleBelow:true,changeTo:"$1"} {}
This does not throw an error, but it doesn't work for me. None of the paragraph rule properties can be applied: offset, line weight, etc.
Indeed, it can't be done directly with a findGrep (or findChange). Look at the dialog box in InDesign and you'll see that the paragraph rules are not included. Since the JS Find features leverage the technology that provides the find features to the interactive user, it suffers from the same limitation.
In a script, you can get around this by doing the find (rather than a change) and then iterate through the results setting the paragraph rule you want.
Dave
Thanks, Dave ... I should have noticed those features are not available in the find/change dialogs (and will keep that in mind next time I'm looking for some attribute to apply).
I've worked around the issue by duplicating the basic paragraph style, but with the ruleBelow active, and then simply apply it through the findChange control file.
I had hoped to avoid having so many styles ... perhaps in the next release!
North America
Europe, Middle East and Africa
Asia Pacific