On this topic here is a style question.

My script reads thru a text file sequential pages grouped by a common bar code until the bar code data changes and so it reads to the end of that group, and so on till the end of the document.

The result of that reading is a number; the number of pages in the group.

Should I take the group number as it is determined and then go to a handler to make a new PDF for that group from the master PDF, or should I first collect all the group numbers in a list and then (repeat with i from i to end of list) make all the PDFs one after another after the text file is read?

thanks,
Bob R.