Skip to main content
October 11, 2013
Question

Controling GREP so that found sets retain formatting

  • October 11, 2013
  • 1 reply
  • 683 views

I'm using GREP to find a passage of text, and using found sets to reorder various paragraphs within the passage.

When I run it, the formatting of the found set takes on the formatting attributes of the surrounding text, as if it was pasted without formatting. Anyone know how to control GREP/find/change so that the found sets can retain their original formatting?

InDesign CS5, Mac.

Applescript preferred but will gladly take answers in JS, if not simply the concept of the approach!

Thank you!

This topic has been closed for replies.

1 reply

Andreas Jansson
Inspiring
October 14, 2013

How do you move (reorder) the texts in your current script?

October 14, 2013

Thanks Andreas.

In the abstract, the Find does this:

(match text1)(match text2)(match text3)

And the Change does this

(found text1)(found text3)(found text2)

I'm not in front of the computer with the exact code, but I'll post it when I have it!