Search found 94 matches
- Wed May 01, 2024 4:53 pm
- Forum: Flows
- Topic: Compose XML for HTTP POST using file in hot folder
- Replies: 50
- Views: 1062
Re: Compose XML for HTTP POST using file in hot folder
Hi teetomterrific, I think this should work. (Not tested) 1) Very easy with Switch :-) 2) Use this variable [Job.NameProper:Before="_"] and store it in private data 3) Use this variable [Job.NameProper:Search="\d{1}(?=-)"] and store it in private data 4) Compose the XML with the ...
- Mon Mar 04, 2024 2:26 pm
- Forum: Flows
- Topic: EMFILE: too many open files ..main.js
- Replies: 26
- Views: 7571
Re: EMFILE: too many open files ..main.js
@davyverstaen:
Could you provide a piece of sample code on how to create, open, and close tmp files?
So we have some kind of "recommended" way of working with tmp-files.
Robert
Could you provide a piece of sample code on how to create, open, and close tmp files?
So we have some kind of "recommended" way of working with tmp-files.
Robert
- Mon Mar 04, 2024 11:43 am
- Forum: Flows
- Topic: EMFILE: too many open files ..main.js
- Replies: 26
- Views: 7571
Re: EMFILE: too many open files ..main.js
@JimmyHartington: found this on StackOverflow about the ECONNRESET error. "ECONNRESET" means the other side of the TCP conversation abruptly closed its end of the connection. This is most probably due to one or more application protocol errors. You could look at the API server logs to see ...
- Mon Mar 04, 2024 8:20 am
- Forum: Node.js scripting
- Topic: Script Expression and set action list
- Replies: 4
- Views: 2601
Re: Script Expression and set action list
Hi Jimmy, I agree that job.getVariableAsString etc should be available in the node.js script-expressions. It would make migrating from legacy to node.js script-expressions much easier. But... The Enfocus Scripting docs provide a function getXpath() that can easily be used to get data from datasets, ...
- Mon Mar 04, 2024 7:14 am
- Forum: Flows
- Topic: EMFILE: too many open files ..main.js
- Replies: 26
- Views: 7571
Re: EMFILE: too many open files ..main.js
Hi Magnus, I've had these errors also. These were caused by scripts that created tmp-files that the script did not properly clean up. Rebooting the whole system helped me get Switch running again, but after a while, the errors reappeared. So check you're script(s) for unclosed (tmp) files. Another s...
- Mon Feb 12, 2024 4:21 pm
- Forum: Flows
- Topic: HTTP POST a body
- Replies: 6
- Views: 415
Re: HTTP POST a body
I use the HTTP Post as follows:
- Incoming job is the json-body to send
- Property "Attached file" references this as in the screenshots
- Fri Nov 10, 2023 4:36 pm
- Forum: Flows
- Topic: Metadata: Add a leading zero to a single digit number
- Replies: 3
- Views: 6130
Re: Metadata: Add a leading zero to a single digit number
Hi Nico, This works for me (on another xml): [Metadata.Text:Dataset="BatchJdf",Model="XML",Path="substring(concat('0' , //dn:GeneralID[@IDUsage='batchQuantity']/@IDValue), 4 - string-length(//dn:GeneralID[@IDUsage='batchQuantity']/@IDValue))"] For you it would be this (...
- Wed Nov 08, 2023 8:08 am
- Forum: Flows
- Topic: PDF to TIF [solved]
- Replies: 6
- Views: 14298
Re: PDF to TIF
Hi Magnus,
Ghostscript would indeed be a good option.
I've been experimenting with Ghostscript in the past for color separation to TIF files.
That worked, although slow. I guess a normal TIF file (not separated) would be faster.
Robert
Ghostscript would indeed be a good option.
I've been experimenting with Ghostscript in the past for color separation to TIF files.
That worked, although slow. I guess a normal TIF file (not separated) would be faster.
Robert
- Mon Sep 12, 2022 7:55 am
- Forum: Action Lists
- Topic: Select and log cut path length in millimeters
- Replies: 4
- Views: 8973
Re: Select and log cut path length in millimeters
Hi Magnus,
Attached is an actionlist that i once received from Enfocus.
It uses checks if the dieline is less than 1mm.
If not, then it logs a warning containing the actual length.
Robert
Attached is an actionlist that i once received from Enfocus.
It uses checks if the dieline is less than 1mm.
If not, then it logs a warning containing the actual length.
Robert
- Tue Jul 26, 2022 12:15 pm
- Forum: Node.js scripting
- Topic: Debugger doesn't stop at breakpoint
- Replies: 1
- Views: 2678
Re: Debugger doesn't stop at breakpoint
I've spend quite some time debugging this debugger-problem
The problem was that the script was loaded from an UNC path.
So I changed the path to a mapped drive-letter, and that solved it
Robert
The problem was that the script was loaded from an UNC path.
So I changed the path to a mapped drive-letter, and that solved it
Robert
- Thu Jul 14, 2022 11:06 am
- Forum: Node.js scripting
- Topic: Debugger doesn't stop at breakpoint
- Replies: 1
- Views: 2678
Debugger doesn't stop at breakpoint
Hi I've written quite some node.js scripts for Switch and used the debugger often with success. But now, the debugger doesn't stop at my breakpoints anymore. It stops at a strange point (see 2th screenshot) The console.log messages are logged in the Debug Console. At first, I thought it had to do wi...
- Wed Feb 02, 2022 9:41 am
- Forum: PDF Creation
- Topic: Split PDF to color separations
- Replies: 14
- Views: 367094
Re: Split PDF to color separations
Hi Freddy,
Looking at this sample, I would expect the left CMYK bars to knock out on the underlying text.
I'll send you the PDFs and Actionlist with the "Upload to Enfocus" tool.
Original
Result
Looking at this sample, I would expect the left CMYK bars to knock out on the underlying text.
I'll send you the PDFs and Actionlist with the "Upload to Enfocus" tool.
Original
Result
- Thu Jan 27, 2022 10:10 am
- Forum: PDF Creation
- Topic: Split PDF to color separations
- Replies: 14
- Views: 367094
Re: Split PDF to color separations
@FreddyP: I've tried this approach but it seems that this doesn't respect overprint of CMYK over a spotcolor.
- Mon Jan 24, 2022 10:37 am
- Forum: Flows
- Topic: Is using a wildcard in an XML path for a flow condition possible?
- Replies: 8
- Views: 6162
Re: Is using a wildcard in an XML path for a flow condition possible?
Hi
If you do it like this,
then it should find the first Operation/Name, no matter where in the XML.
Robert
If you do it like this,
Code: Select all
[Metadata.Text:Path="//Operation[1]/Name",Dataset="Xml",Model="XML",Search="Eyelet"]
Robert
- Wed Jan 19, 2022 4:25 pm
- Forum: PDF Creation
- Topic: Split PDF to color separations
- Replies: 14
- Views: 367094
Re: Split PDF to color separations
@FreddyP : Can you tell some more about this SpotColor None?