Search found 102 matches
- Thu Jan 23, 2020 7:01 am
- Forum: LEGACY scripting
- Topic: Writing a Text File via (Java) Scripting
- Replies: 5
- Views: 13873
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...
- 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: 12025
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 ...
- Thu Oct 17, 2019 2:53 pm
- Forum: Action Lists
- Topic: Log invalid spotcolors
- Replies: 1
- Views: 5246
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
Thanks
Robert
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

Thanks
Robert
- Thu Jul 18, 2019 7:37 am
- Forum: Action Lists
- Topic: %Page Number% in a barcode
- Replies: 3
- Views: 9808
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.
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.
- Wed Jul 17, 2019 3:25 pm
- Forum: Action Lists
- Topic: %Page Number% in a barcode
- Replies: 3
- Views: 9808
Re: %Page Number% in a barcode
You could use (static)text with a code39 barcode-font.
Quite simple.
Quite simple.

- Mon Jul 08, 2019 7:48 am
- Forum: PDF Creation
- Topic: Split Multiple Page PDF
- Replies: 6
- Views: 38754
Re: Split Multiple Page PDF
Why not use the "Split PDF" configurator of Switch?
- Mon Apr 08, 2019 5:21 pm
- Forum: Applications
- Topic: Running WIN batch files containing %1 and %2 variables
- Replies: 3
- Views: 10182
Re: Running WIN batch files containing %1 and %2 variables
Thanks Jan, it saved my day! 

- Mon Mar 25, 2019 7:56 am
- Forum: Flows
- Topic: XML Pickup for Multiple Values
- Replies: 8
- Views: 16104
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.
If the this counted value is > 0 the job goes that direction.
- Wed Mar 13, 2019 7:30 am
- Forum: LEGACY scripting
- Topic: JavaScript working with an array
- Replies: 6
- Views: 31475
Re: JavaScript working with an array
Hi
I guess this should do the trick
I guess this should do the trick

Code: Select all
infoString = job.getVariableAsString('[Job.NameProper:After="(",Before=")"]');
infoArray = infoString.split(",");
- Thu Mar 07, 2019 2:00 pm
- Forum: LEGACY scripting
- Topic: PitStop action lists via script
- Replies: 16
- Views: 32747
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
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
- Fri Mar 01, 2019 6:40 am
- Forum: LEGACY scripting
- Topic: Combining pdf's
- Replies: 3
- Views: 7549
Re: Combining pdf's
PDFtk might be another solution.
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
It's (almost) free software with also a "Server" product.
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
It's (almost) free software with also a "Server" product.
- Fri Mar 01, 2019 6:35 am
- Forum: Flows
- Topic: Insert files into folder
- Replies: 4
- Views: 7666
Re: Insert files into folder
Use the "Assemble job" to create the folder.
But if the original is comming in in folder 19, why inject it?
But if the original is comming in in folder 19, why inject it?
- Fri Mar 01, 2019 6:30 am
- Forum: Flows
- Topic: Convert XML to XMP and inject XMP
- Replies: 2
- Views: 6243
Re: Convert XML to XMP and inject XMP
If you've got the scripting-module, you could write a script for it.
Another option would be to use a XSLT-transformation. Wouldn't need the scripting-module for XSLT
Another option would be to use a XSLT-transformation. Wouldn't need the scripting-module for XSLT
- Wed Feb 20, 2019 7:49 am
- Forum: Flows
- Topic: XML Pickup for Multiple Values
- Replies: 8
- Views: 16104
Re: XML Pickup for Multiple Values
You can quite easy sort the files based on the number of nodes with a quantity >= 250 or <=25 I've created a flow like this: https://i.imgur.com/IngHE49.png The condition for routing to folder 3 or 4 is: https://i.imgur.com/L2sBIxl.png [Metadata.Integer:Path="count(//ORDER_ITEM[ORDER_QUANTITY >...
- Thu Feb 14, 2019 9:51 pm
- Forum: LEGACY scripting
- Topic: Looping through private data and adding to file name suffix
- Replies: 2
- Views: 6861
Re: Looping through private data and adding to file name suffix
This should do the trick :) // get a list of all privatedata-tags pdkList = job.getPrivateDataTags(); // create an empty array for found values valueList=[]; // Itterate privatedata key's for (i=0;i<pdkList.length;i++) { // Check if it starts with "Key " if(pdkList[i].find('Key ') == 0){ /...