Search found 38 matches

by rzacherl
Mon Jul 26, 2021 1:57 pm
Forum: Applications
Topic: setting up XPath Loop expression in XML Repeater
Replies: 3
Views: 4103

Re: setting up XPath Loop expression in XML Repeater

Hello Aar096, please send me your flow and a CSV file (or at least the XML file which comes out of CSV2XML). Just out of personal interest: why don't you output single XML files for each CSV record from within CSV2XML? Alle you have to do is to switch the script property Output as single XML file fr...
by rzacherl
Thu Jul 22, 2021 9:39 am
Forum: Applications
Topic: setting up XPath Loop expression in XML Repeater
Replies: 3
Views: 4103

Re: setting up XPath Loop expression

Hello unknown XML Repeater user,

the loop XPath expression needed to split this XML file into separate entry entities should simply be
/csv/entry

If it doesn't work, please contact me again.

Best regards,

Robert
by rzacherl
Thu Sep 27, 2012 8:14 am
Forum: LEGACY scripting
Topic: Error: Communication was aborted...
Replies: 4
Views: 7108

Error: Communication was aborted...

Hi Marble, I was only speaking about UNC path (i.e. "servermapping") definitions. Normal network paths set up via drives names (if we're talking about MS Windows) are not affected by this. How do you inject that 500+ files with your script code? Is it a for/next loop injecting 500+ newly c...
by rzacherl
Wed Sep 26, 2012 8:31 pm
Forum: Flows
Topic: Reading barcode in Switch
Replies: 3
Views: 6385

Reading barcode in Switch

Hi Dwight,



what CLI tool are you using as underlying technology? Is it a custom development of Apago or are you using a openware command line tool? If yes, what tool is it?





Regards,



Robert
by rzacherl
Wed Sep 26, 2012 8:26 pm
Forum: LEGACY scripting
Topic: Error: Communication was aborted...
Replies: 4
Views: 7108

Error: Communication was aborted...

Hi, we've seen this error behavior with callas pdfToolbox configurators, too. But I never saw this with one of our scripts. How did you define the base path for the Submit hierarchy flow element. Did you use UNC paths? If yes, then this problem results from using backslashes instead of forward slash...
by rzacherl
Fri Aug 17, 2012 8:23 am
Forum: LEGACY scripting
Topic: Traversing XML with switchscript
Replies: 5
Views: 10418

Traversing XML with switchscript

Hi sgeller, you have to make use of the methods of the scripting API's XML module. To get a set of nodes you would use the evalToNodes() method with a suitable XPath expression which selects the nodes of interest and returns a NodeList object. After that you can traverse through this NodeList via a ...
by rzacherl
Thu Aug 02, 2012 8:01 am
Forum: LEGACY scripting
Topic: Script error - undefined member 'numPages'
Replies: 1
Views: 6008

Script error - undefined member 'numPages'

Hi Wilson, you're trying to make use of the JavaScript for Acrobat API within a Switch script package. That doesn't work because Switch has it's own API which is incompatible to the Acrobat one. What you can do is to use of the Acrobat configurator. There you have access to Acrobat's JavaScript API....
by rzacherl
Mon Jun 25, 2012 1:24 pm
Forum: LEGACY scripting
Topic: ScriptedFlowElement::jobArrived
Replies: 5
Views: 7581

ScriptedFlowElement::jobArrived

Hello Mr. Lohbrandt, without having seen your actual script code it's nearly impossible to tell what is the reason for the crash. Either post your complete script code or make your unprotected script package available to us. Otherwise... What external CLI process are you trying to control? What scri...
by rzacherl
Mon Jun 25, 2012 1:19 pm
Forum: LEGACY scripting
Topic: Escape
Replies: 11
Views: 12369

Escape

Hello lohbrand,



based on the path I would state that you're using the Fixture (debugging) capabilities of SwitchScripter to test your script outside Switch.



Regards,



Robert
by rzacherl
Thu May 31, 2012 9:07 am
Forum: LEGACY scripting
Topic: Week of Year
Replies: 1
Views: 4346

Week of Year

Hi foxpalace, calculating the correct calendar week is quite tricky because officially (at least in Germany) the first calendar week of a year starts with the week which contains the date of 4th of January or in other words the week in which the first Thursday of the year exists. As a year has 365 o...
by rzacherl
Thu May 31, 2012 8:28 am
Forum: LEGACY scripting
Topic: XSLT - createTransform()
Replies: 5
Views: 7990

XSLT - createTransform()

Hello Mr Lohbrandt, it's a known issue of the scripting API and will get fixed in one of the coming Switch update version. At the moment there's no workaround available besides using a different XSLT processor like e.g. Saxon which can be controlled via a "Execute command" flow element or ...
by rzacherl
Mon Mar 26, 2012 5:10 pm
Forum: Applications
Topic: PowerSwitch 10.2 and 10.7?
Replies: 5
Views: 8751

PowerSwitch 10.2 and 10.7?

Hi Jörg,



Switch 10 is not officially released for Mac OS X 10.7 (Lion).

The first compliant version is the new Switch 11.

The problems you experience result from the fact that Apple change the permissions of the /Library folder and its sub folders.



Best regards,



Robert
by rzacherl
Tue Mar 20, 2012 12:24 pm
Forum: Flows
Topic: AC_IL_PDF has invalid value
Replies: 2
Views: 5573

AC_IL_PDF has invalid value

Hi Thomas,



are you sure that you're using the property editor type "Single line text with variables" and an expression which looks like that:



/rootpath/subpath/[Job.NameProper].pdf



Robert
by rzacherl
Fri Feb 17, 2012 7:43 am
Forum: LEGACY scripting
Topic: Copy a file inside to the same name folder
Replies: 6
Views: 10203

Copy a file inside to the same name folder

Hi Miquel, seems that you're not familiar with many of the basic concepts in Switch like hierarchy info and especially with PowerSwitch and it's scripting API. You don't need to copy the job to the final location or delete the original job file by using my script code. The script adds the necessary ...
by rzacherl
Thu Feb 16, 2012 8:10 am
Forum: LEGACY scripting
Topic: Copy a file inside to the same name folder
Replies: 6
Views: 10203

Copy a file inside to the same name folder

Hi, the script code does with minor changes (you didn't explain the naming conventions before) exactly what you want. All you have to do is to copy the code into a script package and create a script property named "folderPath", put a "Script element" in your flow and assign it th...