script get oldest file from directory
Posted: Mon May 06, 2019 2:16 pm
Hi,
i'm new to this forum. been using switch for quit some time. but i ran into an issue that i can't fix (i'm not realy an expierenced scripter).
Our screening software can't handle the speed of our renderes, therefor the plate order gets mixed up.
so i need a flow which creates a time gab between two files, so the software has more time to proces the files.
i started with the space jobs option of the 'hold job' , but as it turns out that doesn't ensure first in first out, so the plates got even more mixed.
I had an explanation of the switch helpdesk why not, but no out of the box solution for how to fix it.
i was thinking of a script that would look into a folder and get the oldest file and inject that one.
does someone have that already written? it whould help me a lot.
Thanks
Boris
i'm new to this forum. been using switch for quit some time. but i ran into an issue that i can't fix (i'm not realy an expierenced scripter).
Our screening software can't handle the speed of our renderes, therefor the plate order gets mixed up.
so i need a flow which creates a time gab between two files, so the software has more time to proces the files.
i started with the space jobs option of the 'hold job' , but as it turns out that doesn't ensure first in first out, so the plates got even more mixed.
I had an explanation of the switch helpdesk why not, but no out of the box solution for how to fix it.
i was thinking of a script that would look into a folder and get the oldest file and inject that one.
does someone have that already written? it whould help me a lot.
Thanks
Boris