Search found 535 matches

by freddyp
Fri Oct 30, 2020 5:38 pm
Forum: LEGACY scripting
Topic: Replace comma with a dot
Replies: 1
Views: 28

Re: Replace comma with a dot

This is something you can do directly in the XPath with which you get the info from the XML using an XPath function:
Screen Shot 2020-10-30 at 15.35.00.png
Screen Shot 2020-10-30 at 15.35.00.png (76.96 KiB) Viewed 20 times
The XPath expression is perhaps not so readable in the image:

Code: Select all

translate(//productsize,',','.')
by freddyp
Fri Oct 30, 2020 1:18 pm
Forum: Flows
Topic: Dummy Job Clock
Replies: 6
Views: 681

Re: Dummy Job Clock

Why don't you simply use the time constraints of the flow? The flow will not run between the times you specify so Dummy Job Clock will not be creating files. Or is that too easy?
by freddyp
Fri Oct 30, 2020 10:46 am
Forum: Flows
Topic: Measure time completed for process per file
Replies: 1
Views: 22

Re: Measure time completed for process per file

"Hold job" with the "Folder constraint" property set to "Yes" on the outgoing connection. "Maximum job count" should be 1 of course.
by freddyp
Tue Oct 27, 2020 5:47 pm
Forum: Node.js scripting
Topic: number and validating property
Replies: 1
Views: 88

Re: number and validating property

The behavior you describe has always been like that. If you want to allow negative number and/or floats during flow design (that is different than at execution time ), you should choose "Single-line text" in combination with "Validation - Custom". In the entry point isPropertyValid (legacy) or in va...
by freddyp
Mon Oct 26, 2020 3:24 pm
Forum: LEGACY scripting
Topic: Split PDF with script expression
Replies: 2
Views: 131

Re: Split PDF with script expression

You do not need a script expression for that: [Switch.Calculation:Expression="[Stats.NumberOfPages] / [Job.NameProper:After="Copies"]"] for the "Pages per file" property should do it. However, you probably also want to make sure that the number of pages of the PDF is a multiple of the number after "...
by freddyp
Fri Oct 23, 2020 3:31 pm
Forum: Node.js scripting
Topic: SOAP Request
Replies: 1
Views: 511

Re: SOAP Request

USE PROMISES!

During the advanced webinar session (there is on Nov. 17th at 9am and one on Nov. 19th at 4pm) I will explain in a bit more detail why you should use promises instead of callbacks, and offer a strategy or two on how to cope with that.
by freddyp
Tue Oct 13, 2020 6:07 pm
Forum: Flows
Topic: Execute Command SSH
Replies: 3
Views: 412

Re: Execute Command SSH

You should let the property "Command or path" of "Execute command" point to a shell script instead of to ssh itself. Do not forget to chmod +x the shell script!
by freddyp
Thu Oct 08, 2020 2:28 pm
Forum: Applications
Topic: Communication Switch - Photoshop interrupted
Replies: 3
Views: 523

Re: Communication Switch - Photoshop interrupted

This is not something I am familiar with, so I cannot help you but let me ask you this: what is it that you are doing with the files in Photoshop? Depending on your answer my advice may be not to use Photoshop at all, but to use a much more efficient approach.
by freddyp
Wed Oct 07, 2020 5:17 pm
Forum: Imposition
Topic: Switch 2020 and Impostrip Pro 2020 with hotfolders
Replies: 2
Views: 485

Re: Switch 2020 and Impostrip Pro 2020 with hotfolders

Once a file has been deposited in a hierarchy Switch does not hold on to the file, so I see no reason why this should not work. Is the hierarchy on a network drive? Does the writing of the file take a long time so perhaps Impostrip is trying to pick up a file that is not complete and it does not wai...
by freddyp
Wed Oct 07, 2020 9:06 am
Forum: Flows
Topic: Metadata - Paired Dropdown lists
Replies: 4
Views: 460

Re: Metadata - Paired Dropdown lists

"Client Code" is not a valid xpath. I think you just typed the label of the field in your submit point. You should use the "Build location path" dialog to build the xpath interactively. Then you know it is right. However, the xpath that is built in this way is not particularly smart: it use indexes,...
by freddyp
Tue Oct 06, 2020 8:27 am
Forum: Flows
Topic: Metadata - Paired Dropdown lists
Replies: 4
Views: 460

Re: Metadata - Paired Dropdown lists

Just add the list as you have written it to the dropdown items of the metadata field. When you then access the metadata value with a single-line text with variables use the After field to specify that you want everything after the space.
by freddyp
Fri Oct 02, 2020 9:07 am
Forum: Node.js scripting
Topic: api call from flow
Replies: 2
Views: 312

Re: api call from flow

You are using callbacks for the http part, but Switch keeps executing the rest of the script and hits the end before the http call calls the callback function (lots of calling going on here). We are organizing webinar sessions on NodeJS scripting in Switch on October 20th and 22nd (Getting started) ...
by freddyp
Fri Oct 02, 2020 9:04 am
Forum: LEGACY scripting
Topic: UTF-16 in Xml
Replies: 2
Views: 498

Re: UTF-16 in Xml

Many XML files do not have an XML declaration as the first line:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
That is OK, but then UTF-8 is assumed. Perhaps your XML file does not have such a declaration?
by freddyp
Wed Sep 30, 2020 5:03 pm
Forum: Flows
Topic: Using multiple checkpoints via email in flows
Replies: 1
Views: 244

Re: Using multiple checkpoints via email in flows

Using multiple Checkpoint via mail elements using the same account can work because each element only takes the mails that are relevant for itself. It is possible that a problem occurs when both elements are accessing the mail box at the same time. When they try again the next time it will probably ...
by freddyp
Thu Sep 24, 2020 6:07 pm
Forum: Imposition
Topic: Is there way to have Switch place a file in Indesign?
Replies: 6
Views: 620

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

The action that will give you that behavior is: Scale to fit page size. With the settings in the attached screenshot you should get what you now do via Indesign. Screen Shot 2020-09-24 at 18.04.24.png The width and height values will probably have to be variable. Let me also reiterate my remark that...