Hi,
I have a Job Folder with several files and want to reassemble them to new job folders. There should be a new job folder for all files that are named for example "...Beratung...pdf" and all files "...Analyse...pdf" and maybe there are some more keywords. This works pretty good with the variable Job Name and the "Search" for the keyword. I just wondering if there is a possibility not to name the keywords in detail but to tell switch it should put all files with the same keyword into a new job folder, without naming the keyword.
Search Same File Name - reassemble Job
Re: Search Same File Name - reassemble Job
"Ungroup job" followed by "Assemble job" with the following settings:
Scheme - Custom
Job identifier: some variable that extracts the keyword from the job name
Number of files: this is problematic because you do not know how many files of a certain keyword there will be, but you can solve it using another property (see below). Set this to a high number you will never have, e.g. 999
Job folder name: use the same value as for "Job identifier"
Orphan timeout: this is the timeout for jobs that have been waiting without being assembled because the criteria are not met. Set this to 1 minute. Because of the 999 the criteria will never be met, but after a minute all jobs that have the same "Job identifier" will be assembled.
It is not 100% efficient because there is a waiting period to ensure that all files are there, but I hope it is acceptable. If not, you wil have to script it.
Scheme - Custom
Job identifier: some variable that extracts the keyword from the job name
Number of files: this is problematic because you do not know how many files of a certain keyword there will be, but you can solve it using another property (see below). Set this to a high number you will never have, e.g. 999
Job folder name: use the same value as for "Job identifier"
Orphan timeout: this is the timeout for jobs that have been waiting without being assembled because the criteria are not met. Set this to 1 minute. Because of the 999 the criteria will never be met, but after a minute all jobs that have the same "Job identifier" will be assembled.
It is not 100% efficient because there is a waiting period to ensure that all files are there, but I hope it is acceptable. If not, you wil have to script it.
Re: Search Same File Name - reassemble Job
That's exactly what I do already and it works pretty good The variable for Job Identifier is Job Name --> Search: Analyse or Search:Beratung.
What I wanted to know is, if it is possible not to Search for "Analyse" and "Beratung" but instead set up a variable which checks if the files are named with the same words automatically.
What I wanted to know is, if it is possible not to Search for "Analyse" and "Beratung" but instead set up a variable which checks if the files are named with the same words automatically.
- magnussandstrom
- Advanced member
- Posts: 365
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Search Same File Name - reassemble Job
When "Assemble job" you could set Scheme to Custom and set Job indentifier to look for example the first 6 characters of the file name [Job.NameProper:Segment="1-6"] or everything before the first underscore [Job.NameProper:Before="_"], then set Number of files to 100000 and set After N minutes to 1 minutes (or what time-limit suits your workflow).JuBaz wrote: ↑Tue Jan 10, 2023 12:38 pm That's exactly what I do already and it works pretty good The variable for Job Identifier is Job Name --> Search: Analyse or Search:Beratung.
What I wanted to know is, if it is possible not to Search for "Analyse" and "Beratung" but instead set up a variable which checks if the files are named with the same words automatically.
Input:
Output:
Maybe that could work for you?
Re: Search Same File Name - reassemble Job
I will try if that's more flexible, thank you!