Search found 79 matches

by patej
Mon Jan 31, 2022 12:55 pm
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5239

Re: Typescript compile error in index.d.ts

OK well that sounds like a bug then – could you file a support case via Enfocus Customer Portal?

--patrik
by patej
Mon Jan 31, 2022 10:24 am
Forum: Node.js scripting
Topic: Typescript compile error in index.d.ts
Replies: 8
Views: 5239

Re: Typescript compile error in index.d.ts

I haven't encountered exactly that, but the line numbering in your index.d.ts doesn't match mine so what version of types-switch-scripting are you including in your project? When you create a new script folder with Switch 2021 Fall, the line in its package.json is: "@types/switch-scripting"...
by patej
Tue Dec 07, 2021 1:38 pm
Forum: Flows
Topic: Send email if failed to Inject job?
Replies: 2
Views: 1885

Re: Send email if failed to Inject job?

Hi, have you tried the new Inject Wildcard app instead: https://www.enfocus.com/en/appstore/product/inject-wildcard or older Inject Lite to assert if file exists before trying to inject: https://www.enfocus.com/en/appstore/product/inject-lite Both of those have error connections you could use to tri...
by patej
Tue Nov 02, 2021 7:52 am
Forum: Flows
Topic: Single Line Text with Variables
Replies: 7
Views: 5172

Re: Single Line Text with Variables

Latecomer to this party, but surely 'After_' is the easiest solution (assuming your naming structure is consistent) Actually that doesn't work because as it states in the documentation, "After" extracts “The substring after (and not including) the last occurrence of the search string” so ...
by patej
Wed Jun 09, 2021 10:02 pm
Forum: Flows
Topic: Trying to get a specific part of NameProper with regex
Replies: 3
Views: 3285

Re: Trying to get a specific part of NameProper with regex

I noticed that I could use the Before and After in this case, but It would be good to know why the regular expression did not work. That's because of "Note: Positive and negative lookbehind are currently not supported." in here: https://www.enfocus.com/manuals/UserGuide/SW/21/home.html#en...
by patej
Tue Jun 01, 2021 3:25 pm
Forum: Flows
Topic: Feature request - Copy property values while flow is running
Replies: 2
Views: 2889

Re: Feature request - Copy property values while flow is running

HI, I think support portal is the place to submit feature requests and I agree that it would be a useful feature. Currently, as a workaround, we simply duplicate the running flow and copy the values from the there, after which the duplicate can be deleted... A bit cumbersome, but safer that stopping...
by patej
Mon Apr 26, 2021 9:49 am
Forum: Flows
Topic: Save as Optimised PDF from Adobe Acrobat Professional configurator
Replies: 4
Views: 5841

Re: Save as Optimised PDF from Adobe Acrobat Professional configurator

If you have (or can upgrade to) PitStop 2021 released last week, it has a new action list called "Optimize PDF (emulates Acrobat optimized save)" which should get you similar results than in Acrobat:
Image
by patej
Thu Apr 15, 2021 9:48 am
Forum: Flows
Topic: Compress all files in folder when newest file is older than 30 min
Replies: 4
Views: 3550

Re: Compress all files in folder when newest file is older than 30 min

Would it work to just have an Assemble job before Archive? Set it to assemble by "arbitrary files", "every 10000 jobs" (or anything else too big) with the orphan timeout as 30 minutes ––> files are assembled as a job folder after 30 minutes has passed since the last file.
by patej
Tue Apr 13, 2021 2:31 pm
Forum: Flows
Topic: How can I view when a Switch Flow was last used?
Replies: 5
Views: 4358

Re: How can I view when a Switch Flow was last used?

@jan_suhr's way (or writing directly to db, too) is the best (and only) way currently to do it reliably, but if you don't have that implemented, you can try checking what the flow's the backing folders' modification dates at data root\Switch Server\backing\flow name\automanaged are ;-) – it's certai...
by patej
Thu Mar 11, 2021 3:33 pm
Forum: Node.js scripting
Topic: switchScriptTool --pack
Replies: 6
Views: 6837

Re: switchScriptTool --pack

I think you should pack it outside the script folder so that it doesn't overwrite the "0 KB .sscript".
For example:

Code: Select all

SwitchScriptTool.exe --pack . ../build/
to have it created inside a "build" directory at the same level as your script folder.
by patej
Wed Mar 10, 2021 12:42 pm
Forum: Flows
Topic: Pitstop Preflight - Dynamic resolution check for different page sizes
Replies: 3
Views: 3446

Re: Pitstop Preflight - Dynamic resolution check for different page sizes

Another and probably more performant option is to setup the preflight profile to use a variable and let Switch set its value according to the page size. However, if you may have different page sizes in the document (that might fall into those different categories), then you might be better off using...
by patej
Tue Feb 23, 2021 11:38 pm
Forum: Node.js scripting
Topic: switchScriptTool --pack
Replies: 6
Views: 6837

Re: switchScriptTool --pack

It depends on how your environment is setup and what kind of things you do with the scripts, but one key thing is that using script folders is currently a bit slower than using packed scripts. There are some other reasons, too, and Enfocus has listed those on this page: https://www.enfocus.com/manua...
by patej
Tue Feb 02, 2021 4:37 pm
Forum: Node.js scripting
Topic: Versioning scripts & Builds
Replies: 7
Views: 10233

Re: Versioning scripts & Builds

"unfortunately Switch doesn't yet provide tools to e.g. load balance and sync flows between several Switch installations" It seems to me like you could use version control on the flows folder but I think there are some outside dependencies that need to be worked in with it as well? I woul...
by patej
Tue Feb 02, 2021 2:25 pm
Forum: Node.js scripting
Topic: Versioning scripts & Builds
Replies: 7
Views: 10233

Re: Versioning scripts & Builds

Hi, Good question. We have ended up working in the following way, for now at least: each script has its own directory (i.e. script folder) and then we have a separate build directory for the packaged .sscript files. Building into the script folder doesn't make sense because you lose the "magica...
by patej
Tue Jan 26, 2021 5:44 pm
Forum: Flows
Topic: Single Line Text with Variables
Replies: 7
Views: 5172

Re: Single Line Text with Variables

I'm glad I could help and welcome to the community! :)