Search found 53 matches

by patej
Mon Oct 05, 2020 1:55 pm
Forum: Node.js scripting
Topic: NodeJS debugging
Replies: 11
Views: 2195

Re: NodeJS debugging

Yes I've had the same; if the node script itself breaks, i.e. the debugging session is terminated, Switch continues to wait for response and the Switch_Server process has to be terminated manually. After this the error you mentioned appears and the reason seems to be that Switch is still listening t...
by patej
Fri Sep 11, 2020 3:32 pm
Forum: Applications
Topic: Portals give warnings
Replies: 2
Views: 1146

Re: Portals give warnings

I would recommend you to try Switch2Switch (https://www.enfocus.com/en/appstore/product/switch2switch), which uses the remote processing feature introduced in Switch 2019. It is much faster and in my experience also more reliable than Portals. Despite its name you can also use it to transfer jobs wi...
by patej
Wed Jul 01, 2020 8:58 am
Forum: LEGACY scripting
Topic: RegExp problem, remove iframe
Replies: 9
Views: 2949

Re: RegExp problem, remove iframe

I also couldn't get it to work using regular expressions. I found an alternative way: Basically I split the text on the blockquote open and close tags and keep the parts which have even indexes in the splitted array. Thanks @Padawan, that's much cleaner and easier, somehow I just had my mind fixed ...
by patej
Tue Jun 30, 2020 12:03 pm
Forum: LEGACY scripting
Topic: RegExp problem, remove iframe
Replies: 9
Views: 2949

Re: RegExp problem, remove iframe

Hmm.. What's the result you get in Switch? I can't check right now myself, but looking at the code, one problem is that '.{3,8000}' matches everything after it, including </blockquote> so it will match text after that, too, if the character count allows. Unfortunately Switch scripts don't support lo...
by patej
Wed Jun 10, 2020 1:34 pm
Forum: Flows
Topic: HTTP Request Not Reliable
Replies: 11
Views: 3609

Re: HTTP Request Not Reliable

It might also be a good idea to log a feature request to Enfocus to have the "Retry failed external processes after " setting in a flow element basis. This way you would be able to use this (in my opinion dangerous) setting only on the flow element that requires it. The more people that report it, ...
by patej
Wed Jun 10, 2020 12:54 pm
Forum: Flows
Topic: Dummy Job Clock
Replies: 6
Views: 1733

Re: Dummy Job Clock

Hi Jimmy, I agree that time constraint options would be a useful addition to it. With the current version, would a workaround work where Dummy Job Clock triggers every 5 minutes 24/7 and you then route the resulting file to Trash if current time is between 23:01 and 04:59? ;-) edit: had to try it my...
by patej
Fri May 15, 2020 9:00 pm
Forum: Flows
Topic: Flow groups disappearing
Replies: 3
Views: 1542

Re: Flow groups disappearing

We haven't had that problem in the more recent versions, either, but we still take backups of the file ‪C:\Users\[USERNAME]\AppData\Roaming\Enfocus\Switch Server\settings\flowsPaneLayout.xml ––> if the flow grouping gets cleared, restoring that file from the backup and restarting Switch restores the...
by patej
Wed Apr 29, 2020 11:55 am
Forum: Flows
Topic: Switch: sort jobs by file size
Replies: 3
Views: 1538

Re: Switch: sort jobs by file size

Hi Jürgen,

My pleasure, good to hear that you got it working :)

--patrik
by patej
Wed Apr 29, 2020 9:54 am
Forum: Flows
Topic: Switch: sort jobs by file size
Replies: 3
Views: 1538

Re: Switch: sort jobs by file size

[Job.Size] gives you a "nicely formatted" version of the size as it says in the description, i.e. 42 KB, 5 MB etc so you can't really compare those values. Use [Job.ByteCount] instead to get the actual size in bytes, which you can then compare e.g. [Job.ByteCount] is greater than 5242880 (5 MB).
by patej
Thu Apr 02, 2020 12:08 am
Forum: Flows
Topic: Sorting and duplicating pages in PDF
Replies: 2
Views: 1441

Re: Sorting and duplicating pages in PDF

I think Duplicate Pages Pro (https://www.enfocus.com/en/appstore/product/duplicate-pages-pro) can handle that. But do you have PitStop Server? With that, it's quite easy to create an action list that copies either the first page or the last page of the document so that you will get a single file wit...
by patej
Thu Feb 06, 2020 8:58 pm
Forum: Switch
Topic: Portals failing after update to 4.0
Replies: 10
Views: 6418

Re: Portals failing after update to 4.0

Hi, We've been using Portals (a bit modified version 3.1) quite extensively the past couple of years and have occasionally faced similar problems, especially with writing the zip file. However, we're now in the process of migrating from Portals to the Switch2Switch app ( https://www.enfocus.com/en/a...
by patej
Mon Jan 27, 2020 10:56 pm
Forum: Switch
Topic: Switch Auto backup
Replies: 3
Views: 1997

Re: Switch Auto backup

Backing up only Flow_n.xml's does not store all information, e.g. Property Sets are stored separately. So exporting is (currently) the way... Dominick has a Flow Auto Backup solution available here: https://github.com/open-automation/swit ... uto-backup , hopefully it helps you.
by patej
Thu Jan 23, 2020 2:51 pm
Forum: Flows
Topic: Numbering files after pdf split
Replies: 3
Views: 1891

Re: Numbering files after pdf split

If you have Scripting Module and you want to ensure that there are always e.g. at least 3 numbers (001,002, ... 011 etc), you can use script expression in Rename job: var lengthRequired = 3; var regex = /^(\d+)/; var name = job.getNameProper(); name.match(regex); var nr = regex.capturedTexts[1]; var...
by patej
Mon Apr 03, 2017 2:08 pm
Forum: LEGACY scripting
Topic: New job from existing file
Replies: 1
Views: 2306

New job from existing file

Hi I am trying to get the total page count of all files in a zip file and without using external scripts only way I know of is to use job.getVariableAsNumber("[Stats.NumberOfPages]"), but that requires that the files are turned into jobs, doesn't it? I tried to implement that idea, but I can't figur...
by patej
Tue Mar 04, 2014 3:02 pm
Forum: Flows
Topic: FTP Receive - errors with passive FTP
Replies: 4
Views: 4611

FTP Receive - errors with passive FTP

OK, thanks for the clarification. We're using Switch 11 update 4, so I'll get in touch with Enfocus Support then!



Thanks,

--patrik