Search found 77 matches

by r.zegwaard
Tue Feb 23, 2021 2:47 pm
Forum: Node.js scripting
Topic: Using UNC-paths in script-definition
Replies: 1
Views: 35

Using UNC-paths in script-definition

Hi

When i use create a script with the switchscripttool on a UNC-path and open and save the script in SwitchScripter (eg to add attributes), the script gets corrupted. That is: several files are deleted by saving in SwitchScripter.
Is this a (known) bug?

Robert
by r.zegwaard
Wed Feb 17, 2021 7:22 am
Forum: Node.js scripting
Topic: Connect to MSSQL - to ODBC or not to ODBC?
Replies: 2
Views: 131

Connect to MSSQL - to ODBC or not to ODBC?

Hi I will need to connect to a MSSQL database in some NodeJS scripts. There are ODBC packages as well as MSSQL packages available for NodeJS Does anyone have any experience with these packages? I would like to know how they differ in speed and stability. We will run many queries with small result-se...
by r.zegwaard
Thu Sep 24, 2020 6:27 am
Forum: Imposition
Topic: Is there way to have Switch place a file in Indesign?
Replies: 7
Views: 2772

Re: Is there way to have Switch place a file in Indesign?

With some Indesign-scripting and the Switch Indesign-Configurator it's very well possible to fill a frame in Indesign with a pdf or any other image. For more info on Indesign-scripting look at: https://helpx.adobe.com/indesign/using/scripting.html And to make a Indesign-script work with Switch: http...
by r.zegwaard
Thu Feb 27, 2020 8:23 am
Forum: Flows
Topic: Somehow re-save/fix pdf file?
Replies: 9
Views: 3281

Re: Somehow re-save/fix pdf file?

Hi RytisT,

I guess that the font with the specific characters is installed on the system with pitstop and not on the system with pitstop-server.
If Wordpress doesn't embed the font in the PDF, then you need the font installed on the system where the file is processed.

Robert
by r.zegwaard
Thu Jan 23, 2020 7:01 am
Forum: LEGACY scripting
Topic: Writing a Text File via (Java) Scripting
Replies: 5
Views: 2972

Re: Writing a Text File via (Java) Scripting

Hi, If you take a look at : https://www.enfocus.com/manuals/DeveloperGuide/SW/19/home.html#en-us/common/sw/reference/r_file_class.html you can find this code : //copies the content of the jobfile (in UTF-8) to a new path //read the contents of the jobfile var str = File.read(job.getPath(), "UTF-8");...
by r.zegwaard
Mon Dec 23, 2019 10:27 am
Forum: LEGACY scripting
Topic: Switchscripter can't combine value from pdf and xml in one variable
Replies: 2
Views: 1848

Re: Switchscripter can't combine value from pdf and xml in one variable

Your script will run on arrival of a pdf OR xml So when the pdf arrives, your script doesn't have the values of the xml and vice versa. So you could adjust the flow and script to attach the xml as metadata to the pdf and after that run the script. In that case the script can retrieve the xml-values ...
by r.zegwaard
Thu Oct 17, 2019 2:53 pm
Forum: Action Lists
Topic: Log invalid spotcolors
Replies: 1
Views: 1473

Log invalid spotcolors

Hi,

I want to log invalid spotcolors with an actionlist so i can use that in a PreflightProfile.
We have defined several valid spotcolors (Thru-cut, Crease etc.) and all Pantone Spotcolors
I've created an actionlist (see attached) but i'm strugling with the logical operators :roll:

Thanks

Robert
by r.zegwaard
Thu Jul 18, 2019 7:37 am
Forum: Action Lists
Topic: %Page Number% in a barcode
Replies: 3
Views: 2587

Re: %Page Number% in a barcode

You're welcome.
The font works fine for barcodes, but for eg a qr-code this solution won't work.
So i've created a feature-request at Enfocus for a more flexible way to use page-numbers in barcodes / qr-codes.
by r.zegwaard
Wed Jul 17, 2019 3:25 pm
Forum: Action Lists
Topic: %Page Number% in a barcode
Replies: 3
Views: 2587

Re: %Page Number% in a barcode

You could use (static)text with a code39 barcode-font.
Quite simple. :D
by r.zegwaard
Mon Jul 08, 2019 7:48 am
Forum: PDF Creation
Topic: Split Multiple Page PDF
Replies: 5
Views: 7519

Re: Split Multiple Page PDF

Why not use the "Split PDF" configurator of Switch?
by r.zegwaard
Mon Mar 25, 2019 7:56 am
Forum: Flows
Topic: XML Pickup for Multiple Values
Replies: 8
Views: 5642

Re: XML Pickup for Multiple Values

It counts the the number of order_items for which the quantity is >= 200 or quantity is <= 25
If the this counted value is > 0 the job goes that direction.
by r.zegwaard
Wed Mar 13, 2019 7:30 am
Forum: LEGACY scripting
Topic: JavaScript working with an array
Replies: 6
Views: 4392

Re: JavaScript working with an array

Hi

I guess this should do the trick ;)

Code: Select all

infoString = job.getVariableAsString('[Job.NameProper:After="(",Before=")"]');
infoArray = infoString.split(",");
by r.zegwaard
Thu Mar 07, 2019 2:00 pm
Forum: LEGACY scripting
Topic: PitStop action lists via script
Replies: 16
Views: 10365

Re: PitStop action lists via script

You should write a script(expression) that results in a path to a actionlist
So eg: C:\path\to\actionlist.eal

Or if you want multiple, separate them with a semicolon:
C:\path\to\actionlist_1.eal;C:\path\to\actionlist_2.eal