Search found 1023 matches

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: 3381

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: 3381

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: 3804

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: 25091

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: 16985

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: 4575

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: 4575

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: 2811

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: 14311

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...
by freddyp
Tue Aug 04, 2020 10:35 am
Forum: LEGACY scripting
Topic: DPD SOAP API
Replies: 10
Views: 14311

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...
by freddyp
Mon Aug 03, 2020 11:08 am
Forum: LEGACY scripting
Topic: DPD SOAP API
Replies: 10
Views: 14311

Re: DPD SOAP API

When you read in the documentation that something is a constructor: SOAP ( in-path : String ) Constructs a new SOAP request and reads the SOAP envelope from the specified XML file. then the usage is: var soapRequest = new SOAP(inPath); whereby inPath is not job.getPath(), but the path to the XML tha...
by freddyp
Fri Jul 31, 2020 9:22 am
Forum: Flows
Topic: [SOLVED] Using Switch for automatic OCR recognition?
Replies: 11
Views: 13011

Re: Using Switch for automatic OCR recognition?

Tesseract was also the first thing that sprang to my mind. Ingenious scripting? Tesseract is a command line tool, so you can integrate it with "Execute command". If the options are always the same, and I would think they probably are, you do not need a script. If the choice of options is m...
by freddyp
Fri Jul 31, 2020 9:15 am
Forum: Flows
Topic: find job repository by variable
Replies: 11
Views: 10504

Re: find job repository by variable

It is always a good idea to have a look in the Enfocus Appstore. This app will probably solve your problem:
https://www.enfocus.com/en/appstore/pro ... t-wildcard
by freddyp
Mon Jul 27, 2020 9:09 am
Forum: Flows
Topic: Execute Command not Finding LaTex shell command
Replies: 3
Views: 3707

Re: Execute Command not Finding LaTex shell command

You have to realize that the Switch Server process that is running in the background is NOT running in the same environment as the one that is used one the command line (either a command prompt window on Windows, or Terminal on Mac). One of the big differences is the PATH environment variable. This ...
by freddyp
Fri Jul 17, 2020 2:01 pm
Forum: Preflighting
Topic: Actions & Preflights
Replies: 4
Views: 7747

Re: Actions & Preflights

I thought you were doing something in an Action List inside the preflight profile for checking the presence of layers because the "Document has layers" check that you use in the preflight profile checks for the presence of layers, however many. There is your problem. As to the solution, I ...