Search found 572 matches

by freddyp
Wed Jan 20, 2021 8:50 am
Forum: Flows
Topic: Output folder name
Replies: 5
Views: 566

Re: Output folder name

The way to approach hierarchies is by starting at the end: when a job hits "Archive hierarchy" this element creates a folder and subfolder structure based on what is in the [Job.Hierarchy] variable. The same is true by the way for "FTP send". It is your job as a flow designer to make sure this varia...
by freddyp
Tue Jan 19, 2021 5:27 pm
Forum: Applications
Topic: HP SmartStream Designer Imposition (version 120)
Replies: 16
Views: 8320

Re: HP SmartStream Designer Imposition (version 120)

i do not have an active license for the HP SmartStream Design Imposition plug-in, so I can only formulate suggestions. Investigate the box setup of the input PDF. You write that the PDF contains bleed, but does that mean that it has a bleed box? Or is the trim box just bigger? Is there even a trim b...
by freddyp
Tue Jan 19, 2021 5:08 pm
Forum: Applications
Topic: Ai file loses color profile after processing.
Replies: 8
Views: 905

Re: Ai file loses color profile after processing.

There is an Illustrator save option that determines whether or not the ICC profile should be included and the default is "false". That probably explains why saving as Illustrator loses it. This being said, you should not save the PDF with a script for the Command property, but just with the standard...
by freddyp
Mon Jan 18, 2021 4:21 pm
Forum: Flows
Topic: Use regex in condition with variables
Replies: 5
Views: 381

Re: Use regex in condition with variables

It is correct, but there is something unnecessary in the reasoning that I would get rid of. The result of the Search on the job name with the regex you have specified will be one of the strings in the regex. If none of these strings is present the result is an empty string. So far, so good. You then...
by freddyp
Mon Jan 18, 2021 9:20 am
Forum: LEGACY scripting
Topic: Text to XML in Switch Scripter
Replies: 1
Views: 1216

Re: Text to XML in Switch Scripter

A word of advice: do not do this using legacy scripting, use NodeJS instead. It may take you a bit longer to get started, but in the long term it will bring you more benefits. There are packages to convert JS objects to XML (e.g. json2xml). In other words, read the text file and place the info into ...
by freddyp
Mon Jan 18, 2021 9:05 am
Forum: Node.js scripting
Topic: api call from flow
Replies: 6
Views: 1044

Re: api call from flow

@Sunnyland: you can make the HTTP part of your code simpler based on the advice I gave in this post: viewtopic.php?f=26&t=3959
by freddyp
Mon Jan 18, 2021 9:02 am
Forum: Node.js scripting
Topic: api call with https
Replies: 2
Views: 273

Re: api call with https

Same remark as for this post ( https://forum.enfocus.com/viewtopic.php?f=26&t=3849 ): use Promises! A word of advice for working with HTTP calls: use the axios package. It is easy to use and highly configurable. const axios = require("axios"); //JavaScript import axios from "axios"; //TypeScript ......
by freddyp
Wed Jan 13, 2021 11:53 am
Forum: Flows
Topic: Illustrator configurator scripting
Replies: 18
Views: 1129

Re: Illustrator configurator scripting

Has there been a change in the setup of Switch that it is now running as a service? If so, that will not work. Installing the latest version of the configurator is also a good idea (you can always go back if need be). Try by not having AI open when the script starts, so Switch opens it. Try with a v...
by freddyp
Wed Jan 13, 2021 9:55 am
Forum: Flows
Topic: Illustrator configurator scripting
Replies: 18
Views: 1129

Re: Illustrator configurator scripting

You also have to make sure the ExtendScript Toolkit is installed. It used to be installed by default, but that is no longer the case.
https://www.adobe.com/products/extendsc ... t.htmlESTK
by freddyp
Thu Jan 07, 2021 8:39 am
Forum: Preflighting
Topic: Preflight Profile Database
Replies: 2
Views: 1959

Re: Preflight Profile Database

There are 140 preflight profiles under the Standard section. These come preinstalled with PitStop Pro. You will see that the Ghent PDF Workgroup section contains by far the largest number of profiles. That is because the Ghent Workgroup does a great job at specifying standard checks for different ty...
by freddyp
Mon Dec 14, 2020 9:43 am
Forum: Flows
Topic: Condition with variables OR AND not working
Replies: 6
Views: 1099

Re: Condition with variables OR AND not working

You have to test for equality instead of inequality:

a part of the filename is equal to something from metadata
OR
another part of the filename is equal to something from metadata

AND

the mail address contains something
by freddyp
Fri Dec 11, 2020 9:06 am
Forum: Flows
Topic: Condition with variables OR AND not working
Replies: 6
Views: 1099

Re: Condition with variables OR AND not working

It is a problem of the logic not being correct. You check if the variant of the ID in the metadata is also in the filename and there are two possible variants. This means there is always one variant that will not be equal. So, (A OR B) will always be false. Once you realize this, the solution is obv...
by freddyp
Thu Dec 10, 2020 2:00 pm
Forum: Flows
Topic: variable builder random characters
Replies: 2
Views: 909

Re: variable builder random characters

The description of the problem leaves a lot to the imagination, but I do not think it is the idea to add 2 random characters. What my imagination tells me is that there is a piece of metadata with a value, let us say, "abc" and the flow has to find a template that is named "abcxy", but it could also...
by freddyp
Thu Dec 10, 2020 8:42 am
Forum: Applications
Topic: Illustrator with Links convert to PDF
Replies: 1
Views: 449

Re: Illustrator with Links convert to PDF

If the links cannot be found and "Fail jobs with unavailable images" is set to Yes, I would say that is normal. Illustrator links to images using relative paths and as the file in Switch is not in the same location as the original the paths to the images cannot be resolved correctly. If the images a...
by freddyp
Mon Nov 30, 2020 9:04 am
Forum: Flows
Topic: Webhooks/Requests
Replies: 7
Views: 942

Re: Webhooks/Requests

Anyways, so now I need to pickup this XML in switch, so that switch can read one of metadata lines and download file from URL. How do I exactly point Switch to read certain line? Once your XML is attached as a dataset (in this case attached to itself) you can use what is called an XPath in the Meta...