Page 1 of 1

Hold files - sending one file at the time

Posted: Thu Jul 18, 2013 9:39 am
by EsbenStage
Dear all,



I need to feed PS with one file at the time, holding back the remaining files until the first file have been processed.



I have used the "Hold" tool, but are unsure with release condition I can use?



I would like to be able to choose something like this "When folder contains no file, route one single file to folder xx"



Looking forward to your input



Br. Esben

Hold files - sending one file at the time

Posted: Fri Jul 19, 2013 3:31 pm
by dkelly
You could try using a Script Expression on the outgoing connection to Photoshop.



var numFiles = s.getOutConnections().getItem(0).getFileCount(false);

numFiles ? false : true;





Dwight Kelly

Apago, Inc.

Hold files - sending one file at the time

Posted: Tue Jul 23, 2013 11:21 am
by freddyp
What application is PS? Photoshop or PitStop Server?



In neither case it is necessary to use a Hold element, because Switch will automatically make sure an application does not process more files than it can handle.



If it is really necessary to send one file at the time (like when you are load balancing to different rips) use the "Folder constraint" property of the connection out of the Hold element, and set "Maximum file count" to 1.



Freddy