Page 1 of 1

Assemble Job

Posted: Wed Apr 15, 2020 12:09 pm
by Mark Casey
Hi All

This no doubt rather simple but I just can not get my head round this

I have a folder where jobs are arriving, file name examples below:

104774-Newsletter-Sheet-1.pdf
105323-Leaflets-Sheet-1.pdf
107929-Programme-Sheet-1.pdf
107929-Programme-Sheet-2.pdf

I need to Assemble the 4 files into 3 Folders, ie the Jobs with the same Job Number are matched and put together, jobs with just one file to be kept on their own

Any advice please would be appreciated :roll:

Thanks

Re: Assemble Job

Posted: Wed Apr 15, 2020 1:50 pm
by Terkelsen
You could use a variable like this [Job.NameProper:Search="(.*)\-"] to assemble jobs with same name before the last dash. The problem, however, is how to know how many files to assemble. If jobs belonging together are coming in more or less at the same time, you could use "After N minutes".

Re: Assemble Job

Posted: Wed Apr 15, 2020 2:15 pm
by Mark Casey
Thanks

There would only ever be a maximum of 2 files for each Job number, probably about 50/50 some will be 1 the others will be 2

Re: Assemble Job

Posted: Thu Apr 16, 2020 3:26 pm
by Terkelsen
OK. Then you can just set the number of files to be assembled to 2 and the the "After N minutes" also to 2. This way those with two pages will be assembled as soon as there are two pages with the same name before the last dash and those with only one page will be sent through after two minutes because the condition of two pages is not fulfilled within the time limit.