Search found 25 matches

by congomonster
Fri Jan 14, 2022 2:35 pm
Forum: Node.js scripting
Topic: RegEx problem compare names
Replies: 4
Views: 2535

Re: RegEx problem compare names

Okay, i have something that works now. I downloaded some of the example scripts provided by enfocus. let pdfComparsionFilePathFiles; try { pdfComparsionFilePathFiles = await fs.readdirSync(pdfComparsionFilePath); await pdfComparsionFilePathFiles.forEach(file => { job.log(LogLevel.Info, 'The file nam...
by congomonster
Fri Jan 14, 2022 2:00 pm
Forum: Node.js scripting
Topic: RegEx problem compare names
Replies: 4
Views: 2535

Re: RegEx problem compare names

Hi, first of all thank you for your answers! As freddyp guessed, that is exactly how i thought this will work. ;) Thanks for the hint that i have to watch the folder. I think that i have to rewatch await and async in Javascript. Sometimes i don't understand when i have to use what. For example, this...
by congomonster
Thu Jan 13, 2022 5:29 pm
Forum: Node.js scripting
Topic: RegEx problem compare names
Replies: 4
Views: 2535

RegEx problem compare names

Hi, i have another questions. i hope someone can help me out... I want to check in the destination folder if a file exist. If the file is there, then the actual job should be send too. But i have a problem with the name part. The actual file has the "1_Somename__925171_Di_6-AM-42.pdf" and ...
by congomonster
Thu Jan 13, 2022 2:31 pm
Forum: Node.js scripting
Topic: await is only valid in async functions
Replies: 4
Views: 2518

Re: await is only valid in async functions

I think it is working now. The SwitchScripter cashed the main.js fil under the roaming folder in Windows. I did a reconnect to the main.js file.
by congomonster
Thu Jan 13, 2022 9:50 am
Forum: Node.js scripting
Topic: await is only valid in async functions
Replies: 4
Views: 2518

Re: await is only valid in async functions

Yes, i think i linked it correctly. The errors shows up on switch internal webpage. And the file is routed to the problem folder. We have the Fall 2021 version installed by the way.
by congomonster
Wed Jan 12, 2022 4:42 pm
Forum: Node.js scripting
Topic: await is only valid in async functions
Replies: 4
Views: 2518

await is only valid in async functions

Hi, need some help with my "newbie" question. I'm new to scripting with NodeJS and switch. I played around with it. i copied the example from the documentation. async function jobArrived(s, flowElement, job) { const outConnections = flowElement.getOutConnections(); for (const connection of...
by congomonster
Thu Dec 16, 2021 4:53 pm
Forum: Node.js scripting
Topic: Split PDF Files in main.js
Replies: 3
Views: 3223

Split PDF Files in main.js

Hi, i'm just trying out the "new" way to code with NodeJS. Is there a way to split a pdf file in Javascript? The documentation gives me a PDF Class: http://www.enfocus.com/manuals/DeveloperGuide/SW/21.1/home.html#en-us/common/swscr/reference/re_swscr_pdfdocumentclass.html And i was able to...
by congomonster
Thu Jul 02, 2020 9:57 am
Forum: PitStop Pro
Topic: Acrobat loses focus with Pitstop Pro
Replies: 1
Views: 2676

Acrobat loses focus with Pitstop Pro

Hi, we have a problem with Adobe DC and Pitstop Pro. This Problem has begun with Acrobat DC. After you use Pitstop with different PDF files Acrobat loses the focus and you have to click on the top bar. Example: I have a opened a PDF file and use the path tool. I can now use the arrow keys to move th...
by congomonster
Tue May 17, 2016 3:54 pm
Forum: LEGACY scripting
Topic: Status and name of the flows
Replies: 2
Views: 3917

Status and name of the flows

Hi,

is it possible to get the names and status of all flows?

I want to display the status of the flows in a website. The scripting module is available. The web module not.
I thought the status can be triggered if the flow is enabled or disabled. Has anyone an idea how to get that working?
by congomonster
Tue Feb 16, 2016 6:22 pm
Forum: Flows
Topic: Get E-Mail Adress from Metadata or a file
Replies: 1
Views: 2558

Get E-Mail Adress from Metadata or a file

Hi, i need some help to pick up an email adress. I will send files back with email. But how can i get the file to recognized the mail adress? I have tried the opague pick up but that doesn't work. I have put an email adress in a text file and gave the text file and the image file the same name. But ...
by congomonster
Mon Oct 05, 2015 5:02 pm
Forum: Flows
Topic: statistic dashboard for switch (website)
Replies: 3
Views: 3773

Re: statistic dashboard for switch (website)

Hi gabrielp, thanks you for your answer. We didn't have the web module. The first thing we did, was to set up checkpoints before and after some configurators. We put this data into a mysql database and show them on a website in a table. For the table we used: https://www.datatables.net/ (it has a bu...
by congomonster
Mon Oct 05, 2015 4:07 pm
Forum: Flows
Topic: statistic dashboard for switch (website)
Replies: 3
Views: 3773

statistic dashboard for switch (website)

Hi,

it is possible to show system info and info's from switch on a website?

I have build a dashboard with some checkpoints for our flows. For the overview it would be great to see if switch is running or how much disk storage is left.

Has anyone done something similar?

thanks
by congomonster
Thu Oct 16, 2014 10:18 am
Forum: LEGACY scripting
Topic: Ghostscript PDF to TIF
Replies: 3
Views: 4715

Ghostscript PDF to TIF

Awesome! it workss now! BIG Thank You!
by congomonster
Thu Oct 16, 2014 8:14 am
Forum: LEGACY scripting
Topic: Ghostscript PDF to TIF
Replies: 3
Views: 4715

Ghostscript PDF to TIF

Hello, i need some help for a conversion from PDF to TIF. I have Ghostscript installed and it worked with the terminal. I think my problem has something to do with the output path. Arguments: -q -dNOSAFER -dNOPAUSE -dBATCH -r300 -sDEVICE=tiffg4 -sPAPERSIZE=a4 -deletfile "%2" "%1"...
by congomonster
Thu Aug 28, 2014 9:05 pm
Forum: LEGACY scripting
Topic: Database entries
Replies: 12
Views: 23299

Database entries

OK. But how can i get the entries? It is possible to write a xml file? or something else?