Poor man's mail merge

There was a mail merge script for Scribus (at http://www.assembla.com/wiki/show/scribusmailmerge ) which brought a good solution for mail merging with Scribus but it didn't work with any modern version of Scribus and the page has moved.

Ekkehard Wil has also created a quite advanced mail merger.

The script on this page is a workaround which has (for now) to be adapted for each job.

It has been created for the following workflow:
 * Create your document without the frames to be filled with dynamic content; copy the content of the page.
 * Create a new document where you run the merging
 * Create a master page (in this example it's called "badge") and paste in there the page you have copied before1
 * Create a csv file with the content you want to insert in you document
 * every line will be a page
 * every field (separated by a comma) will go into its frame (or you can do more fancy things with each column)
 * adapt the values of the variables name_x to project_h (change the names and values to fit your document)2
 * adapt the part of the script after for row in data: to your needs

1 A better way is to transform the page in a master page and then import the master page into a the new document: at the time of writing this function doesn't work reliably on all version of scribus.

2 you can find the values by creating the frames in the document, reading the values and deleting them (or just removing them from the master page)

This is -- as far as I know -- the easiest way of (cleanly) doing it: there may be better ways to handle the job and you are invited to post your ideas and code in this page!