Keep files in correct order after sorting

Post Reply
lombert
Member
Posts: 167
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Keep files in correct order after sorting

Post by lombert »

If I use 'Sort files in job' and get a correct file order and want that to continue in that order throwout the flow. How do I?

Have now correct file order numbered 1-100 in a folder. Let the flow run and then stop. Two folders later the 12,13,14,26,33,36,40 and so on going forward to next folder, the rest is stil in the folder behind.

Why can't it pick files in correct 'job prefix' order?

I thought that the Hold could do that, but no.
Between jobs!
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Keep files in correct order after sorting

Post by gabrielp »

I think this will do what you want. You sort in job, then you use the count variable (which you need to take from the file name) and use that as the job priority for the hold. This will give you them in order, but reversed.

Image

https://drive.google.com/file/d/0B9ciRz ... sp=sharing
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
lombert
Member
Posts: 167
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Re: Keep files in correct order after sorting

Post by lombert »

Thanks! Good to knew.
Between jobs!
Post Reply