Search found 37 matches

by tdeschampsBluewest
Thu Apr 18, 2024 4:39 pm
Forum: Flows
Topic: Rush job not working
Replies: 3
Views: 157

Re: Rush job not working

Hi, If the other files are still "processing" while you hit the rush job, they still need to finish their actual step before leaving place to another one. Rush job, just allow a max priority to a job. Quotation from Switch documentation : The Switch job scheduler has the following (sometim...
by tdeschampsBluewest
Wed Apr 10, 2024 4:18 pm
Forum: Flows
Topic: OpenAI
Replies: 18
Views: 297028

Re: OpenAI

Hi stano,
Sorry for the late reply (not checking the forum as much as i want/should).

Do not hesitate to send us your flow via appstore@bluewest.fr, and we could take a look with you :)
by tdeschampsBluewest
Mon Apr 08, 2024 1:06 pm
Forum: Node.js scripting
Topic: Using imagemagick in script under Mac
Replies: 5
Views: 365

Re: Using imagemagick in script under Mac

Hi, c
Instead of using "child_process" alongside promisify, i could suggest you tu use library cross-spawn (https://www.npmjs.com/package/cross-spawn)

The command is quite simple :

Code: Select all

const args:string[] = [...]
const result = spawn.sync('magick', args, { stdio: 'inherit' });
by tdeschampsBluewest
Tue Mar 12, 2024 8:31 am
Forum: Flows
Topic: EMFILE: too many open files ..main.js
Replies: 25
Views: 1186

Re: EMFILE: too many open files ..main.js

Hi, I had a talk with Enfocus support about it, and they confirmed that it's tied to something not closing the file properly. For tmp, you "should" use the optional "discard descriptor" propertie : async function createTmpFile(content: string | Buffer | Uint8Array, prefix: string...
by tdeschampsBluewest
Fri Jan 12, 2024 7:57 am
Forum: Node.js scripting
Topic: NPM package for generating XML
Replies: 3
Views: 59839

Re: NPM package for generating XML

laurentd wrote: Thu Jan 11, 2024 10:55 am
Here we use this one, and it work like a charm!
by tdeschampsBluewest
Thu Jan 04, 2024 8:23 am
Forum: LEGACY scripting
Topic: calculate all pagesizes in one job
Replies: 2
Views: 14047

Re: calculate all pagesizes in one job

Hi, Is there a reason behind the legacy usage? Dismantler The documentation of scripting 2023 fall give a pretty nice example to loop trough PDF pages : https://www.enfocus.com/manuals/DeveloperGuide/SW/23.1/home.html#en-us/common/swscr/reference/re_swscr_pdfpage_methods.html It will look like somet...
by tdeschampsBluewest
Thu Dec 14, 2023 6:59 pm
Forum: Appstore
Topic: Error message: Unarchiving of the job to the temporary folder was unsuccessful.`
Replies: 1
Views: 40430

Re: Error message: Unarchiving of the job to the temporary folder was unsuccessful.`

Hi, The Portal App is no longer maintained and utilizes outdated technology, which may result in files becoming "stuck" in the system, thereby blocking the entire channel. To resolve this issue, you must manually clean up a specific folder to restore the app's functionality. Navigate to a ...
by tdeschampsBluewest
Fri Jul 21, 2023 3:55 pm
Forum: Forum Guidelines / Forum Feature requests / Forum Bug reports?
Topic: Bot spamming suspicious link
Replies: 0
Views: 99346

Bot spamming suspicious link

Since few weeks, i noticed that an account respond to threads with very suspicious message. They seems to be generated proceduraly or with an IA, and always include a link (which you should not click...) Some example : https://forum.enfocus.com/search.php?author_id=4076&sr=posts Could moderator ...
by tdeschampsBluewest
Tue Jul 11, 2023 2:05 pm
Forum: FastLane
Topic: have you already experienced the FastLane for preflighting files?
Replies: 1
Views: 25538

Re: have you already experienced the FastLane for preflighting files?

Hi Loïc, Fast lane will be a real game changer when we need to process loads of PDF, or file that can create some troubles for PitStop Server (high number of nodes for example) The app itself is pretty straightforwards. One small note, the link to fastlane documentation is not working on the App PDF...
by tdeschampsBluewest
Tue Jul 11, 2023 1:52 pm
Forum: Switch
Topic: How to get file from root folder
Replies: 4
Views: 13497

Re: How to get file from root folder

Hi, as Laurent said, inject Wildcard have every tool you need for this purpose (and several option to achieve it) Maybe you could try something like this : job repository : //nordsign.local/dfs/Orders/Print Republic/ Inject : File only Injected jobs name filter : *.pdf (or something from your xml) H...
by tdeschampsBluewest
Thu Jul 06, 2023 11:41 am
Forum: Flows
Topic: Building an archive structure by file names
Replies: 3
Views: 12350

Re: Building an archive structure by file names

Hi, Effectively, for file under the range index number of digits (4) and above 9, some problem can happen. For example with 00000999 : the regex part will give 00000 the calculation part will give 0, and that's not the wanted number of digits. Another solution, if you have the last version of switch...
by tdeschampsBluewest
Sun Jul 02, 2023 8:51 pm
Forum: Flows
Topic: Building an archive structure by file names
Replies: 3
Views: 12350

Re: Building an archive structure by file names

Hi Peter, Just put the following variables in a "Set hiearchy path" and here you are : [Job.NameProper:Search="^[0]+"][Switch.Calculation:Expression="round(([job.NameProper]/2000)-0.5)*2000"]-[Job.NameProper:Search="^[0]+"][Switch.Calculation:Expression="...
by tdeschampsBluewest
Tue Jun 27, 2023 10:56 pm
Forum: Switch
Topic: Printing spreadsheet (Excel), Powerpoint and other files
Replies: 4
Views: 10533

Re: Printing spreadsheet (Excel), Powerpoint and other files

Here we use Sumatra PDF :
https://www.sumatrapdfreader.org/docs/C ... -arguments

-print-to-default -print-settings fit "%1"
by tdeschampsBluewest
Fri Jun 23, 2023 4:22 pm
Forum: Node.js scripting
Topic: Remove part of private data
Replies: 2
Views: 11722

Re: Remove part of private data

Hi Arsen, Hope you are well ? Your code work great, but it will return an array with the ".toString()" which is not the same format as the one prompted in the first place. Since i think you want a concatenate string as the one in the private data, you need to use "join(" ;")...
by tdeschampsBluewest
Wed Jun 21, 2023 2:32 pm
Forum: Node.js scripting
Topic: Database Values as NodeJS Parameters
Replies: 7
Views: 21233

Re: Database Values as NodeJS Parameters

From what you describe, it's look like the "await" does not really await for the result. Could you try something like this? (I know, it's not perfect, but it should work) function sleep(ms: number) { return new Promise((resolve) => setTimeout(resolve, ms)); } let tempKey:null|string = null...