Search found 1029 matches

by freddyp
Tue Sep 22, 2020 9:38 am
Forum: Flows
Topic: Separate Spots into Individual PDF
Replies: 7
Views: 7108

Re: Separate Spots into Individual PDF

Would like to have single PDF containing multiple coating and/or die spot separations, divide into individual PDFs for each process for routing to process (if needed) and send to separate vendors. I interpreted that as meaning that you wanted the different spot colors that make up a certain process...
by freddyp
Mon Sep 21, 2020 6:04 pm
Forum: Flows
Topic: Separate Spots into Individual PDF
Replies: 7
Views: 7108

Re: Separate Spots into Individual PDF

Use the option "Select Spot Color by name from list" when using the action "Select spot color" and list all the possible names for a foil or a varnish and all those spots will be selected together and will end up on the same layer. Names of spots that are not present in the file ...
by freddyp
Mon Sep 21, 2020 6:04 pm
Forum: Flows
Topic: Separate Spots into Individual PDF
Replies: 7
Views: 7108

Re: Separate Spots into Individual PDF

Use the option "Select Spot Color by name from list" when using the action "Select spot color" and list all the possible names for a foil or a varnish and all those spots will be selected together and will end up on the same layer. Names of spots that are not present in the file ...
by freddyp
Fri Aug 28, 2020 11:46 am
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 25992

Re: XML-path to string

You can use getChildNodes(), but you can also use evalToNodes(xpath). Both return a NodeList object. evalToNodes is more flexible because it is not only capable of getting the direct children but also other nodes further down the tree. It all depends on the XPath, and the XPath depends on the struct...
by freddyp
Fri Aug 28, 2020 9:00 am
Forum: Flows
Topic: Best way to delete files in a folder older then X?
Replies: 12
Views: 17360

Re: Best way to delete files in a folder older then X?

There are a couple of other outstanding wishes for apps in the "Folder Apps" bundle and Laurent and I would like to tackle them all at the same time. We would also like to take the opportunity to convert all the apps to Node.js. The downside of this message is that it will take a bit longe...
by freddyp
Fri Aug 28, 2020 8:47 am
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 25992

Re: XML-path to string

by freddyp
Fri Aug 28, 2020 8:37 am
Forum: LEGACY scripting
Topic: Pass in/out path to jar file with switchscripter?
Replies: 2
Views: 3531

Re: Pass in/out path to jar file with switchscripter?

Code: Select all

var input=job.getPath();
var output=job.createPathWithName(someNameForTheOutput);
//now follows the Java execution
//and when it is done successfully
job.sendToSingle(output); //or sendToData
job.sendToNull(input);
by freddyp
Fri Aug 28, 2020 8:37 am
Forum: LEGACY scripting
Topic: Pass in/out path to jar file with switchscripter?
Replies: 2
Views: 3531

Re: Pass in/out path to jar file with switchscripter?

Code: Select all

var input=job.getPath();
var output=job.createPathWithName(someNameForTheOutput);
//now follows the Java execution
//and when it is done successfully
job.sendToSingle(output); //or sendToData
job.sendToNull(input);
by freddyp
Thu Aug 27, 2020 10:54 am
Forum: LEGACY scripting
Topic: embedded Metadata
Replies: 2
Views: 3941

Re: embedded Metadata

Nothing has changed in Switch 2019 or Switch 2020 with respect to embedded metadata. The only thing is that there is no access to embedded metadata when using the Node.js scripting in Switch 2020.
by freddyp
Fri Aug 21, 2020 1:23 pm
Forum: LEGACY scripting
Topic: XML-path to string
Replies: 14
Views: 25992

Re: XML-path to string

Your have multiple eintrag_pflegen nodes but they seem to have attributes that identify them, so you could perhaps build the XPath like this: //eintrag_anlegen[@nameOfAttribute='value of attribute'] in order to select the one that you need. This can possibly be followed by another node if you have t...
by freddyp
Thu Aug 13, 2020 9:01 am
Forum: Flows
Topic: Best way to delete files in a folder older then X?
Replies: 12
Views: 17360

Re: Best way to delete files in a folder older then X?

I have deliberately chosen to block the "File Pool Cleanup" app (which is part of the Folder Apps bundle) from cleaning up file pools on network drives and on root folders. You have to consider that there is no method for a script or app to communicate with the user once the flow is starte...
by freddyp
Mon Aug 10, 2020 11:44 am
Forum: LEGACY scripting
Topic: Illustrator script error sometimes not defined
Replies: 3
Views: 4711

Re: Illustrator script error sometimes not defined

Sorry, it is indeed $status and not $error.
by freddyp
Mon Aug 10, 2020 9:11 am
Forum: LEGACY scripting
Topic: Illustrator script error sometimes not defined
Replies: 3
Views: 4711

Re: Illustrator script error sometimes not defined

Granted, the documentation does not specify it specifically, but it seems logical that the content of $error has to be a string:

Code: Select all

$error = "error";
and on the next line it has to be $doc instead of doc.
by freddyp
Thu Aug 06, 2020 7:24 pm
Forum: LEGACY scripting
Topic: Rename XML file with PDF file name
Replies: 1
Views: 2928

Re: Rename XML file with PDF file name

Put the two files in a folder and in "XML Pickup" use "Pickup mode - Metadata in job folder asset". The name of the XML does not matter in that case. How do you get the two files in a folder? "Assemble job" with "Scheme - Custom" and "Number of files - 2&...
by freddyp
Tue Aug 04, 2020 10:35 am
Forum: LEGACY scripting
Topic: DPD SOAP API
Replies: 10
Views: 14714

Re: DPD SOAP API

Whether you have to POST or GET are things you have to find in the DPD documentation. SOAP API's generally use POST, but GET is technically allowed. Also the content of the HTTP headers you have to send is something you will find there. Whether you have to upload a file (setAttachedFile) or place th...