I have a body of text, and in it I'd like to apply a specific style to paragraphs matching a pattern. I made a GREP style that applied some formatting changes to the paragraphs I wanted it to affect, but in doing so I found that I could not center those lines using a character style. (The matching lines should be centered, and the rest should be left-justified.)
I was thrilled to learn of the GREP feature, then completely let down by this limitation. Does InDesign provide a way to automate this so I don't have to go through and center each matched paragraph by hand?
GREP Styles only apply Character Styles.
You could use a GREP search to apply a Paragraph Style using the Change Format feature in the Find/Change dialog.
Does InDesign provide a way to automate this so ?
Yes and no. There isn't such a dynamic way of linking paragraph styles to a paragraph regarding it's pattern but there is at least two alternatives :
1) Use Grep F/C
2) Use FindChangeByList script or MultiFindChange which is basically automating F/C operations