Search found 559 matches

by freddyp
Thu Jan 21, 2021 6:31 pm
Forum: Node.js scripting
Topic: PowerSwitch 2020 Fall and TypeScript
Replies: 1
Views: 225

Re: PowerSwitch 2020 Fall and TypeScript

Yes, that is unfortunately a known problem that will be solved in the 2021 release.

Easy workaround: after having installed another package, type

Code: Select all

npm i
by freddyp
Wed Jan 20, 2021 9:12 am
Forum: Applications
Topic: Ai file loses color profile after processing.
Replies: 3
Views: 78

Re: Ai file loses color profile after processing.

We cannot use Save as to make PDFs because of our printing software's settings I do not understand that one. Are you referring to a specific custom PDF preset you have to use? In that case add it to the AI on Switch and choose it from the list. You can of course add your script to the "Save as" pro...
by freddyp
Wed Jan 20, 2021 8:50 am
Forum: Flows
Topic: Output folder name
Replies: 5
Views: 305

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: 14
Views: 6826

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: 3
Views: 78

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

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

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

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

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

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

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

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

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

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

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...