Search found 424 matches

by JimmyHartington
Thu Jun 12, 2025 11:35 am
Forum: Preflighting
Topic: Detect corrupt PDFs
Replies: 6
Views: 568

Re: Detect corrupt PDFs

I have made a sample flow for Switch, which sort your sample file in one direction and files without the "recoverable image error" another direction. You can show this to your Switch administrator. The sample flow uses the Run Command app and is running on a Windows server. If your envirom...
by JimmyHartington
Thu Jun 12, 2025 10:51 am
Forum: Preflighting
Topic: Detect corrupt PDFs
Replies: 6
Views: 568

Re: Detect corrupt PDFs

In my tests on macOS, where I have installed the command line tool Ghostscript, I get an error when running this command on the file: gs -o /dev/null -sDEVICE=nullpage sample.pdf Here is the error: Processing pages 1 through 2. Page 1 Page 2 The following warnings were encountered at least once whil...
by JimmyHartington
Thu Jun 12, 2025 9:43 am
Forum: Preflighting
Topic: Detect corrupt PDFs
Replies: 6
Views: 568

Re: Detect corrupt PDFs

Are you able to supply a test-file?

And do you have Enfocus Switch or just Pitstop Server?
by JimmyHartington
Thu Jun 12, 2025 7:40 am
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 2
Views: 438

Re: Executing Windows Batch file (.bat)

It could then look like the flow below.

2 arbitrary files are assembled into a jobfolder.
The "Run Command" app cds into the directory and runs a command to create an empty file.
This is created in the job-folder.
Royal TSX-Flow-server03-2025-06-12 at 07.39.17@2x.png
Royal TSX-Flow-server03-2025-06-12 at 07.39.17@2x.png (109.08 KiB) Viewed 408 times
by JimmyHartington
Thu Jun 12, 2025 7:30 am
Forum: Flows
Topic: Executing Windows Batch file (.bat)
Replies: 2
Views: 438

Re: Executing Windows Batch file (.bat)

Can you share your bat script? This would make it a bit easier to help troubleshoot.

I have had some flow, where I "cd" into a folder in a bat file and do the processing.
Perhaps this is possible here.
by JimmyHartington
Fri Jun 06, 2025 1:50 pm
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 51296

Re: Wait until job folder is empty flow

Version 1.1 is out now.
It is possible to scan sub-directories.
File sizes, created and modified dates are added to the JSON.
by JimmyHartington
Thu May 29, 2025 3:00 pm
Forum: Flows
Topic: Save Excel File as a UTF-16 Uniocode Text File
Replies: 2
Views: 3609

Re: Save Excel File as a UTF-16 Uniocode Text File

There is an app to convert Excel to CSV: https://www0.enfocus.com/en/appstore/product/excel-to-csv Or you can use the EasyDataTransform app https://www0.enfocus.com/en/appstore/product/easy-data-transform-beta This does require a licens to EasyDataTransform itself https://www.easydatatransform.com E...
by JimmyHartington
Tue May 27, 2025 12:05 pm
Forum: Action Lists
Topic: How to create an Action List to swap two text blocks in a label PDF?
Replies: 3
Views: 1157

Re: How to create an Action List to swap two text blocks in a label PDF?

Here is an action list. https://github.com/jimmyhartington/pitstop-actionlists/raw/refs/heads/main/Enfocus%20forum/Reorder%20text%20blocks.eal I decided to assign the objects to layers named WMNS and MENS. And then used this to select the items afterwards. They are selected by region, so please test...
by JimmyHartington
Tue May 27, 2025 10:43 am
Forum: Action Lists
Topic: How to create an Action List to swap two text blocks in a label PDF?
Replies: 3
Views: 1157

Re: How to create an Action List to swap two text blocks in a label PDF?

Can you post a sample pdf of one page? Do all the labels have the same size in mm? Is it these 2 blocks which needs to switched: https://d.pr/i/Qhzt46+ My approach would be to select by region the WMNS block. Set a custom spot to the text. Select by region the MENS block. Set a different spot to tha...
by JimmyHartington
Wed May 21, 2025 10:50 am
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 51296

Re: Wait until job folder is empty flow

And now version 1.1 has been send to approval at Enfocus.
If approved it will include the file names, created and modified dates and file sizes in the JSON data set.
by JimmyHartington
Wed May 21, 2025 8:14 am
Forum: Flows
Topic: Wait until job folder is empty flow
Replies: 14
Views: 51296

Re: Wait until job folder is empty flow

netaware wrote: Thu May 08, 2025 2:44 pm Wow! looks great. Thanks for trying this out!

Let me know when it is complete and/or available in the appstore.
Version 1 of the app is now live in the app store.

https://www0.enfocus.com/en/appstore/pr ... -directory
by JimmyHartington
Tue May 20, 2025 10:30 am
Forum: Flows
Topic: Trigger dummy job every 1th of each month
Replies: 4
Views: 1807

Re: Trigger dummy job every 1th of each month

I would setup a flow like below.
In my case it checks an ftp for files.
But if you setup Firestarter or other app to output a file every 2 hour, then you should end up with just one dummy job in the timespan the flow has.
Royal TSX-Flow-server03-2025-05-20 at 10.28.17@2x.png
Royal TSX-Flow-server03-2025-05-20 at 10.28.17@2x.png (36.84 KiB) Viewed 1801 times
by JimmyHartington
Mon May 19, 2025 3:41 pm
Forum: Node.js scripting
Topic: Merge Excel files
Replies: 11
Views: 42969

Re: Merge Excel files

I agree Easy Data Transform is an excellent program.
But I have not found a way to get it to stack/merge a folder with an arbitrary amount of files.

In other flows I use the cli method of driving it to do data transformation and conversion.
by JimmyHartington
Mon May 19, 2025 8:24 am
Forum: Node.js scripting
Topic: Merge Excel files
Replies: 11
Views: 42969

Re: Merge Excel files

Here is an example flow using Miller to stack/merge csv files. There is also some examples csv-files attached. The input to Milles is a folder containing the csv-files. In my real flow I have an Assemble Job before to collect the files which needs to be stacked. In this example the input in the flow...
by JimmyHartington
Fri May 16, 2025 1:53 pm
Forum: Node.js scripting
Topic: Merge Excel files
Replies: 11
Views: 42969

Re: Merge Excel files

And if a more low-level method could be to convert the Excel-files to CSV. And then use Miller (https://miller.readthedocs.io/en/6.12.0/) to merge the CSVs. I use this method in some flows. Miller is run with the Run Command app. cd "%%InputFilePath%%" & "C:\ProgramData\chocolate...