Search found 94 matches

by r.zegwaard
Wed Mar 13, 2019 7:30 am
Forum: LEGACY scripting
Topic: JavaScript working with an array
Replies: 6
Views: 10308

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

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
by r.zegwaard
Fri Mar 01, 2019 6:40 am
Forum: LEGACY scripting
Topic: Combining pdf's
Replies: 3
Views: 6039

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.
by r.zegwaard
Fri Mar 01, 2019 6:35 am
Forum: Flows
Topic: Insert files into folder
Replies: 4
Views: 6210

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?
by r.zegwaard
Fri Mar 01, 2019 6:30 am
Forum: Flows
Topic: Convert XML to XMP and inject XMP
Replies: 2
Views: 4714

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
by r.zegwaard
Wed Feb 20, 2019 7:49 am
Forum: Flows
Topic: XML Pickup for Multiple Values
Replies: 8
Views: 11720

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 >...
by r.zegwaard
Thu Feb 14, 2019 9:51 pm
Forum: LEGACY scripting
Topic: Looping through private data and adding to file name suffix
Replies: 2
Views: 5245

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){ /...
by r.zegwaard
Thu Feb 14, 2019 8:38 am
Forum: Switch
Topic: How to avoid overwriting IPTC data when using XMP inject?
Replies: 5
Views: 8317

Re: How to avoid overwriting IPTC data when using XMP inject?

Never used XMP-data, but i guess you could first pickup the entire xmp-data. Then modify it and inject it.
by r.zegwaard
Thu Feb 14, 2019 8:32 am
Forum: Preflighting
Topic: variable script expression
Replies: 4
Views: 8712

Re: variable script expression

Code: Select all

if qauntites != "" {
Place brackets in the if statement

Code: Select all

if (qauntites != "") {
by r.zegwaard
Wed Jan 30, 2019 8:14 am
Forum: Flows
Topic: Exporting metadata
Replies: 4
Views: 4835

Re: Exporting metadata

Using Pack / Unpack you can save / restore all metadata for a job.
Note that you can unpack a packed-job only once...
by r.zegwaard
Wed Jan 23, 2019 5:25 pm
Forum: Switch
Topic: Define single-linge text with variables (Build Location path)
Replies: 3
Views: 6370

Re: Define single-linge text with variables (Build Location path)

If you use "//Publication/Name" you should find all "Publication" nodes with a child "Name"
Thats because of the double slash
by r.zegwaard
Wed Jan 23, 2019 5:22 pm
Forum: Preflighting
Topic: Pitstop Preflight for checking page with specific ratio
Replies: 2
Views: 5766

Re: Pitstop Preflight for checking page with specific ratio

In Switch you could calculate the ratio without Pitstop by using: [Switch.Calculation:Expression="[Stats.TrimBoxHeight:Type="Defined",Precision="1"] / [Stats.TrimBoxWidth:Type="Defined",Precision="1"]"] If you use this calculation in a condition, you...
by r.zegwaard
Tue Jan 22, 2019 7:17 am
Forum: Flows
Topic: Length of lines?
Replies: 3
Views: 4175

Re: Length of lines?

I'm interested in this also... So if there is a solution, please share it :) :D
by r.zegwaard
Mon Jan 07, 2019 8:19 am
Forum: Action Lists
Topic: First page empty after "reorder pages"
Replies: 8
Views: 12499

Re: First page empty after "reorder pages"

In an actionlist you can only paste objects to a page behind the page it was copied form.
So you can copy from page 1 to 2 or 3
But not from page 2 or 3 to page 1