Hello all,
What we have is a flow that assembles jobs into a folder then sends them through HP SmartStream Designer Ganging configurator. The files in the folder will be named like so:
Job_*number*_*userID*_*FileName*_Quantity_*number*_.pdf
Anything in between the asterisks(*) is variable information.
Our problem is that we need the final imposed pdf file name to include all the job numbers from the files that were imposed.
Ex: Job_*number*_*number*_*number*.pdf
One idea we had, is when the files get put through the assemble job element, the folder they are put into would be renamed with each job number and no more. For Example if the folder had three files in it:
Job_*number*_*number*_*number*
Another idea we had was to somehow use a vba or bat or ps1 script to get and filter the original job names and then store then in a csv or txt file to be accessed later. Once the job has been imposed it would then use that csv or txt file to name the final PDF.
Unfortunately we do not have the script module.
Any help is appreciated.
Rename PDF With job numbers [SOLVED]
Rename PDF With job numbers [SOLVED]
Last edited by printlab on Mon Apr 11, 2016 7:44 pm, edited 1 time in total.
Re: Rename PDF With job numbers
I'm not sure, but maybe you could use [job.NestedName]. This will add information about the names of all files in the folder. If you add this as a jobState to the assembled folder, all the files in the folder will get this jobState attached.
You might be able to use this information to rename the final PDF. I don't know if the imposed PDF will still hold this information but if you merge the PDF's the information about job state is still there.
You might be able to use this information to rename the final PDF. I don't know if the imposed PDF will still hold this information but if you merge the PDF's the information about job state is still there.
Re: Rename PDF With job numbers
Hi,
I would explore using "execute command" with a bash script. I am thinking of a two step process. First of all, I would store all files numbers in a txt files with job unique Id as name. Then i would later use another command to rename the output file base on that txt file contents.
Loic
I would explore using "execute command" with a bash script. I am thinking of a two step process. First of all, I would store all files numbers in a txt files with job unique Id as name. Then i would later use another command to rename the output file base on that txt file contents.
Loic
Re: Rename PDF With job numbers
[job.NestedName] was exactly what we were looking for! I looked over it when I saw it because I thought it changed the nested file names
.
Thank you for your time! We got it all figured out now!

Thank you for your time! We got it all figured out now!