Search found 587 matches

by freddyp
Tue Apr 13, 2021 3:04 pm
Forum: Flows
Topic: How can I view when a Switch Flow was last used?
Replies: 5
Views: 115

Re: How can I view when a Switch Flow was last used?

Yet another method: if you have the Reporting Module then the processed jobs stay in the database for the number of days specified in the Preferences. You can use a GraphQL query to check how many jobs were processed by all flows during a certain period. Here is a query you can use in the Switch Web...
by freddyp
Mon Apr 12, 2021 8:16 am
Forum: Node.js scripting
Topic: Problems Downloading Zip Files
Replies: 1
Views: 317

Re: Problems Downloading Zip Files

There is not much to go by and although the fact that it works for PDF files and not for ZIP files pleads against it, but the first thing that jumps to mind is this: viewtopic.php?f=26&t=3959
by freddyp
Tue Apr 06, 2021 9:18 pm
Forum: Node.js scripting
Topic: Help with CSV Split
Replies: 5
Views: 416

Re: Help with CSV Split

Remark upfront: if you show code, place it between the code tags. Presenting it like text, especially without indentation, makes it unreadable. Whenever you see sample code on the internet that looks like this: return new Promise(function (resolve, reject) { fastCsv .parseFile(path, options) .on("da...
by freddyp
Tue Apr 06, 2021 1:34 pm
Forum: Applications
Topic: Printing PDFs with Illustrator + Adobe PDF printer
Replies: 5
Views: 1023

Re: Printing PDFs with Illustrator + Adobe PDF printer

We are printing because our printers software is not compatible with exported PDFs. I was afraid you were going to give this as an answer. You should be able to get the output you need by using adequate export settings. When a PDF is printed you get the result of distilled Postscript. With export s...
by freddyp
Tue Apr 06, 2021 8:58 am
Forum: Applications
Topic: Printing PDFs with Illustrator + Adobe PDF printer
Replies: 5
Views: 1023

Re: Printing PDFs with Illustrator + Adobe PDF printer

I can only guess that you must have added that folder to the $outfiles array before you push the C: drive folder. The fact that the push works proves that $outfiles exists as an array, but without seeing the code it is impossible to say what is in there. But you have not answered my question why it ...
by freddyp
Thu Apr 01, 2021 8:16 am
Forum: Applications
Topic: Printing PDFs with Illustrator + Adobe PDF printer
Replies: 5
Views: 1023

Re: Printing PDFs with Illustrator + Adobe PDF printer

Why do you want to print to PDF, rather than export? Consider that printing causes the output to pass via Postscript, so flattening can take place. Printing to a folder that is not known by the Switch element is of course going to generate the error message that the expected output result is not fou...
by freddyp
Wed Mar 24, 2021 1:20 pm
Forum: Flows
Topic: Job dismantler takes way too long
Replies: 2
Views: 596

Re: Job dismantler takes way too long

Are you dismantling from an auto-managed folder to an auto-managed folder? If you are dismantling to an output folder that is on a network drive for example, the files are copied there and if they are big in size (basing myself on the name of the files and the fact that they are TIFF's I assume they...
by freddyp
Mon Mar 22, 2021 5:53 pm
Forum: Applications
Topic: Converting CAD-files to another format with ArtiosCAD
Replies: 2
Views: 617

Re: Converting CAD-files to another format with ArtiosCAD

There is no configurator for ArtiosCAD for Switch. The only way to automate this is through Automation Engine. So when you have a flow on AE that converts an ArtiosCAD file to something else you can send an ArtiosCAD file from Switch to AE through "HTTP request" to a so-called access point in AE tha...
by freddyp
Tue Mar 16, 2021 8:18 am
Forum: Flows
Topic: How to set text file contents as email body
Replies: 11
Views: 1496

Re: How to set text file contents as email body

Putting the Switch variable in between a <span> construction is not necessary. It can be anywhere in the HTML as long as you take care to keep the HTML structure valid after the value of the variable is inserted. Here is an example that uses two Switch variables: the name of the job: [Job.Name] the ...
by freddyp
Wed Mar 10, 2021 1:04 pm
Forum: Flows
Topic: Pitstop Preflight - Dynamic resolution check for different page sizes
Replies: 3
Views: 280

Re: Pitstop Preflight - Dynamic resolution check for different page sizes

Another suggestion is to use Restrictions in a Preflight Profile. You add the different page size selections as individual restricting action list in the Restrictions part of the profile. Then, in the Image section of the profile (or in any other section for that matter), you can define different se...
by freddyp
Wed Mar 10, 2021 9:07 am
Forum: Flows
Topic: Calculate date from [weeknumber]-[weekdaynumber]?
Replies: 3
Views: 383

Re: Calculate date from [weeknumber]-[weekdaynumber]?

You will have to use a script to do that. There is a package for NodeJS called moment that will do that. This is more or less what it could look like (NOT TESTED!). const moment = require("moment"); async function jobArrived(s, flowElement, job) { moment.updateLocale("en", { week: { dow: 1, // First...
by freddyp
Mon Mar 01, 2021 2:33 pm
Forum: Flows
Topic: Assemble - one file and/or multiple files
Replies: 3
Views: 669

Re: Assemble - one file and/or multiple files

As part of the bundle "Folder apps" ( https://www.enfocus.com/en/appstore/product/folder-apps ) there is an app called "Filetypes Counter". The results are placed in private data, so if you have a folder with 3 PDF's and 387 other files and you only want to assemble the PDF's then use "Assemble job ...
by freddyp
Mon Mar 01, 2021 8:38 am
Forum: Applications
Topic: Ai file loses color profile after processing.
Replies: 13
Views: 2735

Re: Ai file loses color profile after processing.

The empty script worked for me, but it is certainly more logical to add the line: $outfiles = [$infile]; //or if you already have other paths on the $outfiles array: $outfiles.push($infile); to tell Switch that the input file is actually (one of) the output file(s). A remark about var $doc = app.act...
by freddyp
Fri Feb 26, 2021 1:35 pm
Forum: Applications
Topic: Ai file loses color profile after processing.
Replies: 13
Views: 2735

Re: Ai file loses color profile after processing.

I finally tried it :D When using a script for the "Save as" property Switch closes $doc without saving any changes after your script has run, IF $doc is not null. So when you close the document in your script there is no active document anymore and $doc is invalid but not null, so you should make su...
by freddyp
Fri Feb 26, 2021 9:26 am
Forum: Flows
Topic: Assemble - one file and/or multiple files
Replies: 3
Views: 669

Re: Assemble - one file and/or multiple files

What is your input? If it is always a folder then Ungroup/Assemble will always work. If it can be a folder or a file then you split the two in the beginning of the flow based on folder or file. The folder you can ungroup. This creates private data that tags the child jobs with the name of the origin...