Reply To: Creating product index for a catalogue

Home Page / Forums / General InDesign Topics (CLOSED) / Creating product index for a catalogue / Reply To: Creating product index for a catalogue

#1256121
David Blatner
Keymaster

Where are the page numbers? Is each line a different paragraph?

If so, maybe you could use a grep find/change to turn the 3 paragraphs into a single paragraph with shift-returns (line breaks). Then you could sort the paragraphs with the SortParagraphs.jsx script in the Scripts panel.

For example, you could search (in the grep tab of the find/change dialog box) for (.+)\r(.+)\r(.+)\r
and replace it with $2?$3?$1\r

That should find everything on the first paragraph, then 2nd paragraph, and the 3rd paragraph… and then replace it with the 2nd paragraph followed by a shift-return, then the 3rd paragraph, then the 1st paragraph.

This article was last modified on June 18, 2020

Comments (0)

Loading comments...