Print specific PDF out of XML or other database


I have a bunch of PDFs which needs to be printed out but in a specific way. Of all, let’s say 200, PDFs I need PDF 1, 2, 67, 90, 102,… for the next prints I need PDF 2, 3, 4, 27, 32, 119,… and so on. I have a list in XLS of all filenames (PDFnames) for each specific “printproject” which I want to use to print and sort the printouts. Has anyone any idea how I can do this with an Applescript or via Automater or …