Search found 19 matches

by laurentd
Mon Oct 26, 2020 11:43 am
Forum: Flows
Topic: Calculate time elapsed for job completion
Replies: 2
Views: 36

Re: Calculate time elapsed for job completion

You are subtracting a time from a time. You should subtract an amount of seconds from an amount of seconds. This works: JobStart=[Switch.Calculation:Expression="[Switch.Date:Format="MM",TimeZone="System"] * 31 * 24 * 3600 + [Switch.Date:Format="dd",TimeZone="System"] * 24 * 3600 + [Switch.Date:Forma...
by laurentd
Fri Oct 16, 2020 12:33 pm
Forum: Node.js scripting
Topic: Best Nodeschool tutorials for learning Node.js in switch?
Replies: 1
Views: 340

Re: Best Nodeschool tutorials for learning Node.js in switch?

Hello. This topic was covered in a webinar early this week. It will soon be available on our e-learning platform. https://www.enfocus.com/en/learn We have planned other webinars about Node.js in Switch, I encourage you to follow them: https://www.enfocus.com/en/scripting-with-the-new-switch-scripter...
by laurentd
Thu Oct 08, 2020 12:12 pm
Forum: Action Lists
Topic: Acrobat variables with Switch
Replies: 2
Views: 340

Re: Acrobat variables with Switch

Yes there is a way: Create a variable set in PitStop with a jobname variable. In the action list, add this variable instead of %Current Document Name%. Then in the PitStop Server configurator, select the same variable set and edit it (just after selecting it). Because you are now editing the variabl...
by laurentd
Fri Oct 02, 2020 12:37 pm
Forum: Flows
Topic: find job repository by variable
Replies: 7
Views: 942

Re: find job repository by variable

Hi Bas, Happy you like the new version, it is now very powerful indeed. Yes you can get the job hierarchy for each injected file or folder, as explained in the app documentation: Inject Wildcard stores the following private data in the internal job ticket for each injected job file or folder in orde...
by laurentd
Tue Sep 29, 2020 12:02 pm
Forum: PitStop Pro
Topic: Flattening of pdf content
Replies: 6
Views: 523

Re: Flattening of pdf content

Yes, it is possible since PitStop 2019.
We call this "Rasterize selection", because flattening refers to transparency flattening.
Here is a movie about it: https://www.youtube.com/watch?v=BJ4_0ffLUGM
by laurentd
Mon Sep 28, 2020 1:51 pm
Forum: LEGACY scripting
Topic: Switch Webhooks
Replies: 13
Views: 689

Re: Switch Webhooks

In Switch you need a webhook element with this Path property: /Switch/ReleaseJob (or anything else of course if you edit the code) If the php file is hosted on the Switch server, the url in the code is "http://localhost:51080/Switch/ReleaseJob", otherwise replace "localhost" with IP address. An yes ...
by laurentd
Mon Sep 28, 2020 12:35 pm
Forum: LEGACY scripting
Topic: Switch Webhooks
Replies: 13
Views: 689

Re: Switch Webhooks

Modify and save this code as php file on your web site. Your QR code should refer to the php file's url. <?php $ch = curl_init(); $data='{"jobnumber":123456, "filename":"GES.pdf", "number of copies":150}'; curl_setopt($ch, CURLOPT_URL, "http://localhost:51080/Switch/ReleaseJob"); curl_setopt($ch, CU...
by laurentd
Thu Aug 13, 2020 3:06 pm
Forum: Flows
Topic: find job repository by variable
Replies: 7
Views: 942

Re: find job repository by variable

Hi Bas, Inject Wildcard v3 is available from your favourite Appstore! And yes it does recursive search in the job repository, also with optional parent hierarchy filtering! And, by the way, this is the first app in the Appstore written in Node.js, supported by the new scripting engine in Switch 2020...
by laurentd
Tue Aug 04, 2020 6:12 pm
Forum: Flows
Topic: find job repository by variable
Replies: 7
Views: 942

Re: find job repository by variable

Inject Wildcard does not search for files recursively yet, this is something we will investigate.
Nevertheless, you can use single-line text with variables for the job repository path, if you know where to search of course.
by laurentd
Mon Aug 03, 2020 12:16 pm
Forum: Switch
Topic: ODBC lookup excel system tables
Replies: 1
Views: 334

Re: ODBC lookup excel system tables

Hi Ralf, I don"t know if your Switch runs on Mac, but if it is the case, this will help you: If you want to access your ODBC database from Excel: OS X Sandboxing is blocking access to /usr/local Solution : 1. move the ODBC driver (mysql-connector-odbc-8.x.x-etc folder) from /usr/local/ to /Library/O...
by laurentd
Wed Jul 15, 2020 11:25 am
Forum: Switch
Topic: Transitioning to Switch from PitStop Server?
Replies: 3
Views: 691

Re: Transitioning to Switch from PitStop Server?

Of course Switch is much more powerful with the Metadata Module, but even without it you can use all the others Switch metadata groups to do Smart Preflight inside of Switch for PitStop Server: Job / Doc / Email / Image / IPTC / Office / Photo / Stats / Switch group, Eg Job group reference (you will...
by laurentd
Wed Jul 08, 2020 1:52 pm
Forum: Switch
Topic: Remove Duplicate Files by Order Number
Replies: 1
Views: 1703

Re: Remove Duplicate Files by Order Number

Hi Mark, Use the Counter - Numberer app https://www.enfocus.com/en/appstore/product/counter Create a counter for each order number, counter name = [Job.NameProper:Search="\d{5}"] Sort the jobs on the condition [Job.PrivateData:Key="counter after"] equals 1 -> treat, All other jobs -> discard   treat...
by laurentd
Wed Jun 10, 2020 10:48 am
Forum: Switch
Topic: Regexp and mount job
Replies: 2
Views: 1264

Re: Regexp and mount job

You can not do this in one go, but here are 2 solutions: Rename the job to the part you need using search and replace regex: Search for regex .+_(\d{1,5})_(\d{6})_(\d{6})_.+ and replace with regex \3 (third captured string) Set private data ID to the job's name: ID=[Job.NameProper], that's the info ...
by laurentd
Wed Jun 10, 2020 9:10 am
Forum: Action Lists
Topic: Generating 10 000 barcodes
Replies: 3
Views: 1022

Re: Generating 10 000 barcodes

Hi, you can use CSV2XML or Excel to XML apps to split your csv or excel file in separate xml files. Then you process each xml file: inject your pdf template, and add the barcode with an action list, using variables from the xml files. At the end of the flow you can assemble and merge the pdf files t...
by laurentd
Tue Jun 09, 2020 10:25 am
Forum: PitStop Server
Topic: Removing specific color
Replies: 3
Views: 862

Re: Removing specific color

Yes indeed, the order of the actions does matter a lot, and AND OR NOT operators should be placed under the action(s), and can also be combined: AND explained: https://www.enfocus.com/manuals/Extra/Actions/20/home.html#en-us/common/act/concept/1.html complete action: https://www.enfocus.com/manuals/...