Search found 36 matches
- Thu Sep 27, 2012 8:14 am
- Forum: Scripting
- Topic: Error: Communication was aborted...
- Replies: 4
- Views: 3508
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...
- Wed Sep 26, 2012 8:31 pm
- Forum: Flows
- Topic: Reading barcode in Switch
- Replies: 3
- Views: 2965
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
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
- Wed Sep 26, 2012 8:26 pm
- Forum: Scripting
- Topic: Error: Communication was aborted...
- Replies: 4
- Views: 3508
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...
- Fri Aug 17, 2012 8:23 am
- Forum: Scripting
- Topic: Traversing XML with switchscript
- Replies: 5
- Views: 3877
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 ...
- Thu Aug 02, 2012 8:01 am
- Forum: Scripting
- Topic: Script error - undefined member 'numPages'
- Replies: 1
- Views: 2905
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....
- Mon Jun 25, 2012 1:24 pm
- Forum: Scripting
- Topic: ScriptedFlowElement::jobArrived
- Replies: 5
- Views: 4076
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...
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
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
- Thu May 31, 2012 9:07 am
- Forum: Scripting
- Topic: Week of Year
- Replies: 1
- Views: 1917
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...
- Thu May 31, 2012 8:28 am
- Forum: Scripting
- Topic: XSLT - createTransform()
- Replies: 5
- Views: 3945
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 ...
- Mon Mar 26, 2012 5:10 pm
- Forum: Applications
- Topic: PowerSwitch 10.2 and 10.7?
- Replies: 5
- Views: 3987
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
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
- Tue Mar 20, 2012 12:24 pm
- Forum: Flows
- Topic: AC_IL_PDF has invalid value
- Replies: 2
- Views: 2484
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
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
- Fri Feb 17, 2012 7:43 am
- Forum: Scripting
- Topic: Copy a file inside to the same name folder
- Replies: 6
- Views: 4430
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 ...
- Thu Feb 16, 2012 8:10 am
- Forum: Scripting
- Topic: Copy a file inside to the same name folder
- Replies: 6
- Views: 4430
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...
- Wed Feb 15, 2012 9:30 am
- Forum: Scripting
- Topic: Copy a file inside to the same name folder
- Replies: 6
- Views: 4430
Copy a file inside to the same name folder
Hi, the basic code needed would look like this: function jobArrived( s : Switch, job : Job ) { var folderPath = s.getPropertyValue( "folderPath" ); var folder = new Dir( folderPath ); var entries = folder.entryList( job.getNameProper(), Dir.Dirs | Dir.NoDotAndDotDot, Dir.Unsorted ); if ( e...
- Thu Feb 02, 2012 3:09 pm
- Forum: Flows
- Topic: Rename Tool in PowerSwitch - Can I do this?
- Replies: 5
- Views: 4358
Rename Tool in PowerSwitch - Can I do this?
Hi Mike,
try this one:
[^;]*foil[^;]*
Best,
Robert
try this one:
[^;]*foil[^;]*
Best,
Robert