Search found 1023 matches

by freddyp
Mon Apr 03, 2017 5:52 pm
Forum: Flows
Topic: Check for files in variable folder
Replies: 3
Views: 4057

Re: Check for files in variable folder

Have a look at https://www.enfocus.com/en/appstore/product/inject-lite. This app can check if a certain file/folder exists ("Assert exists") and then you can inject it.
by freddyp
Mon Apr 03, 2017 5:47 pm
Forum: LEGACY scripting
Topic: New job from existing file
Replies: 1
Views: 3393

Re: New job from existing file

The reason your approach does not work is because the job is only created when the script finishes. The solution is to use the FileStatistics class. You can use that on any file, it does not have to be a job: var filestats = new FileStatistics(pathToFileAsString); The rest is in the documentation of...
by freddyp
Thu Mar 23, 2017 4:36 pm
Forum: Flows
Topic: Targeting 2nd to last page
Replies: 6
Views: 7921

Re: Targeting 2nd to last page

This was added in PitStop 13 update 1.
by freddyp
Thu Mar 23, 2017 9:28 am
Forum: Flows
Topic: Targeting 2nd to last page
Replies: 6
Views: 7921

Re: Targeting 2nd to last page

You have been using the calculation as the name of the variable set. That is not going to work. You have to select an existing variable set, or create one, both through "Select variable set", edit or create a variable set, add a variable, define the value of the variable with your calculat...
by freddyp
Mon Mar 20, 2017 9:27 am
Forum: LEGACY scripting
Topic: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)
Replies: 5
Views: 5496

Re: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)

That is in Switch Scripter!? Of course [Job.Origin] is not filled in. [Job.Origin] can only be filled in in a flow. Try the script again by running it in a flow with a file actually coming from an FTP site! There are lots of properties that get added to a job as it travels through a flow. Because in...
by freddyp
Thu Mar 16, 2017 8:33 pm
Forum: LEGACY scripting
Topic: multiple XML nodes in email alert
Replies: 5
Views: 8089

Re: multiple XML nodes in email alert

Instead of putting everything in different pieces of private data, just put everything into one string and put the separator that you need inside the string. For use in the To or CC fields that would be a semicolon, for use in lines in an HTML mail that would be <br>, ... Codewise (not tested) var m...
by freddyp
Thu Mar 16, 2017 8:12 pm
Forum: LEGACY scripting
Topic: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)
Replies: 5
Views: 5496

Re: Problem in switch2017 with job.getVariableAsString("[Job.Origin]", s)

I assume you are using the new web-based Switch Portal? That the variable [Job.Origin] is not filled in is a known limitation. For security reasons browsers do not allow to get the path of a file that is being uploaded, and hence it is not possible to provide a value for that variable. You can still...
by freddyp
Mon Mar 13, 2017 4:51 pm
Forum: Flows
Topic: Load information in Submit Point
Replies: 4
Views: 5524

Re: Load information in Submit Point

With the Database Module you could indeed populate the drop-down list from an ODBC data source. The only other alternative is the use of a script expression, for which you will need the Scripting Module. Here is a link to a similar case where the values of the drop-down list come from the list of fi...
by freddyp
Fri Mar 10, 2017 4:11 pm
Forum: Flows
Topic: FTP receive not working
Replies: 2
Views: 3577

Re: FTP receive not working

This is typically something you would report to support: https://www.enfocus.com/en/user?destina ... ort/portal
by freddyp
Fri Mar 03, 2017 11:33 am
Forum: Flows
Topic: numberOfFilesCustom has invalid value
Replies: 2
Views: 3266

Re: numberOfFilesCustom has invalid value

Clearly the value of [Job.Hierarchy:Index="1"] is not a number. You must have used "Set hierarchy path" to squeeze the [Job.FileCount] into the hierarchy, right? Did you not have something else in the hierarchy already and index 1 is not what you think it is? Anyway, whenever I w...
by freddyp
Fri Mar 03, 2017 9:24 am
Forum: Applications
Topic: Acrobat Can't open a pdf file
Replies: 1
Views: 4559

Re: Acrobat Can't open a pdf file

It works for me. Do you have this with all PDF files? If so, please report this to support through our website: https://www.enfocus.com/en/support

And please explain why you want to save the PDF as Postscript?
by freddyp
Thu Mar 02, 2017 3:53 pm
Forum: Flows
Topic: Merge PDFs and name it after all merged PDF names
Replies: 4
Views: 4761

Re: Merge PDFs and name it after all merged PDF names

The method with the rename works just fine even with 1 single rename doing multiple actions. Here is how I solved it. After the Assemble job the folder has a name like Job001. In "Rename job" go through the following actions all in 1 single rename: Action Replace - Act on Complete filename...
by freddyp
Thu Feb 23, 2017 2:52 pm
Forum: LEGACY scripting
Topic: ODBC Problem
Replies: 2
Views: 4681

Re: ODBC Problem

Switch 2017 is now completely 64-bit, which means that you also have to change the database driver to the 64-bit version. It is in the release notes :)

Loading the 64-bit driver is not done with odbcad32.exe, but with the regular Control Panel - Administrative tools - Data sources (ODBC).
by freddyp
Wed Feb 22, 2017 5:21 pm
Forum: Flows
Topic: Trigger action to creat or pick up PDF
Replies: 6
Views: 5892

Re: Trigger action to creat or pick up PDF

With one slight addition: if the injected file keeps its own name, then there is no problem, but if it is named after the incoming job the injected PDF will also have the extension of the incoming job, in this case xml. That is not what you want. Add a rename after the inject to change the extension...
by freddyp
Mon Feb 20, 2017 1:09 pm
Forum: Flows
Topic: Sorting PSDs by file dimensions?
Replies: 1
Views: 2969

Re: Sorting PSDs by file dimensions?

You can use Switch - Calculation in the variables pane. Top right you can create the calculation; this opens up one more variable pane in which you can combine Switch variables and fixed values in a formula using +,-,*,/,% (the percent is for modulo calculation) and brackets. So in your case you wil...