Search found 48 matches

by patej
Tue Jan 19, 2021 11:37 pm
Forum: Flows
Topic: Output folder name
Replies: 5
Views: 305

Re: Output folder name

Hi,
For the Path Segment 2 you need [Job.Extension] (or [Job.Extension:Case="upper"] if you want to ensure uppercase names GIF/PNG/JPG).
[Switch.ElementName] gives you the name of the current flow element, e.g. "Set Hierarchy Path" or "Folder 123".
by patej
Wed Dec 09, 2020 11:07 am
Forum: Flows
Topic: Where do I find the installer for Switch 2020 fall?
Replies: 3
Views: 427

Re: Where do I find the installer for Switch 2020 fall?

Yes same happened with me; sorry I forgot to mention that, but good that you found the links! Next time Enfocus could consider changing the template a bit more to distinguish the two because I'm pretty sure most users with maintenance contract have also subscribed to Enfocus' general marketing e-mai...
by patej
Wed Dec 09, 2020 10:48 am
Forum: Flows
Topic: Where do I find the installer for Switch 2020 fall?
Replies: 3
Views: 427

Re: Where do I find the installer for Switch 2020 fall?

You should've received an e-mail yesterday from marketing@enfocus.com with the title "Magnus, discover Switch 2020 Fall" – There is a Download installers subtitle with links to Mac and Win versions.
edit. you of course have to have a valid maintenance contract to get the links... ;)
by patej
Fri Oct 30, 2020 1:32 pm
Forum: Flows
Topic: Dummy Job Clock
Replies: 6
Views: 1486

Re: Dummy Job Clock

D'oh, of course... We've never had the need for those (or hadn't thought of using them at least) and the discussion began with constraints for the element so I didn't come to think of that... :roll:
Thanks for the correcting, Freddy!
by patej
Fri Oct 30, 2020 11:36 am
Forum: Flows
Topic: Dummy Job Clock
Replies: 6
Views: 1486

Re: Dummy Job Clock

The connection to Trash has include "All other". The script expression visible in the screenshot is for the "later than or same" condition and the "earlier than or same" condition would have otherwise the same, but with 23 in the setHours(): d.setHours(23); ––> so depending on the timeframe you want...
by patej
Tue Oct 20, 2020 3:17 pm
Forum: Flows
Topic: Error message from PitStop Server
Replies: 2
Views: 495

Re: Error message from PitStop Server

We had this problem and it was only in 19u1. The problem seems to be solved in versio 2020 so I would recommend you to upgrade to that. Beore 2020 was released, we were given two options by the Enfocus support: 1) downgrade to version 19 2) lower the concurrent processing setting in Switch to below ...
by patej
Tue Oct 06, 2020 7:17 am
Forum: Flows
Topic: Definitions
Replies: 3
Views: 632

Re: Definitions

Continuing from Jan's response, producer, processor and consumer are explained in the manual: https://www.enfocus.com/manuals/UserGuide/SW/20/home.html#en-us/common/sw/reference/r_connection.html : - Processor: Processes jobs and thus accepts incoming and outgoing connections. - Producer: Injects jo...
by patej
Mon Oct 05, 2020 10:25 pm
Forum: Flows
Topic: How to move files from one folder to another
Replies: 6
Views: 948

Re: How to move files from one folder to another

I'm glad you got it working :-) The Set Hierarchy Path element lets you define into what hierarchy (folder structure) the file is stored with the Archive hierarchy element. You can define several levels of hierarchy with it, but your use case required only one, i.e. the first letter folder. This is ...
by patej
Mon Oct 05, 2020 9:48 pm
Forum: Flows
Topic: How to move files from one folder to another
Replies: 6
Views: 948

Re: How to move files from one folder to another

Hi, Doesn't my suggestion work? In my screenshot I had an automanaged folder as the input folder, but naturally it would be a user-specified one, i.e. the folder which gets updated with new files over time. And yes, they will be moved, not copied to the output folder in the A..Z folders. Can you cla...
by patej
Mon Oct 05, 2020 8:31 pm
Forum: Flows
Topic: How to move files from one folder to another
Replies: 6
Views: 948

Re: How to move files from one folder to another

Hi,
Here you go:
input folder –> set hierarchy path with single line text with variables set to [Job.NameProper:Case="upper",Segment="1,1"] –> Archive hierarchy with one subfolder level.
Image
by patej
Mon Oct 05, 2020 1:55 pm
Forum: Node.js scripting
Topic: NodeJS debugging
Replies: 11
Views: 1877

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

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

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

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

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, ...