Search found 36 matches

by patej
Wed Jul 01, 2020 8:58 am
Forum: LEGACY scripting
Topic: RegExp problem, remove iframe
Replies: 9
Views: 945

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: 945

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: 1402

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: 2
Views: 325

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: 703

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: 811

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: 811

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: 744

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: 4321

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: 1195

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: 1004

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: 2074

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: 4167

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
by patej
Fri Feb 28, 2014 2:48 pm
Forum: Flows
Topic: FTP Receive - errors with passive FTP
Replies: 4
Views: 4167

FTP Receive - errors with passive FTP

Hi,

Yes it's FTP, not SFTP. I haven't been able to confirm from them, but they are running Apache 2.22 (ubuntu) on Amazon EC2 so I think it's vsftp. FTP banner shows only version number 1.9.2.4. Does that help?



--patrik
by patej
Thu Feb 27, 2014 11:40 pm
Forum: Flows
Topic: FTP Receive - errors with passive FTP
Replies: 4
Views: 4167

FTP Receive - errors with passive FTP

Hi, I'm struggling with some errors when using FTP Receive. We use it to retrieve some folders with files from our client's FTP site and we can access the site without problems with an FTP client. However, when I connect to it using the FTP Receive configurator (I use the configurator's Choose folde...