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
-
- Newbie
- Posts: 7
- Joined: Wed Jun 20, 2012 2:43 pm
-
- 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
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.
var numFiles = s.getOutConnections().getItem(0).getFileCount(false);
numFiles ? false : true;
Dwight Kelly
Apago, Inc.
Hold files - sending one file at the time
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
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