Hold files - sending one file at the time

Post Reply
EsbenStage
Newbie
Posts: 7
Joined: Wed Jun 20, 2012 2:43 pm

Hold files - sending one file at the time

Post 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
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Hold files - sending one file at the time

Post 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.
freddyp
Advanced member
Posts: 1129
Joined: Thu Feb 09, 2012 3:53 pm

Hold files - sending one file at the time

Post 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
Post Reply