Search found 19 matches
- Thu Sep 05, 2019 9:58 pm
- Forum: LEGACY scripting
- Topic: Concurrent execution...?
- Replies: 1
- Views: 3357
Concurrent execution...?
Hi everyone I'm trying to squeeze as much performance as possible out of a flow containing multiple copies of a script element that is set to concurrent usage. In previous versions of Switch running an Unlimited Performance Module, I was able to spawn dozens of instances of a script set for concurre...
- Mon May 14, 2018 6:28 pm
- Forum: LEGACY scripting
- Topic: Create/modify CDATA section in XML files...?
- Replies: 2
- Views: 4821
Re: Create/modify CDATA section in XML files...?
Thanks for the reply and suggestions.
I'm exploring other options with the customer how to best handle this...hopefully we'll get that feature sometime in the not-to-distant future.
Thanks again.
I'm exploring other options with the customer how to best handle this...hopefully we'll get that feature sometime in the not-to-distant future.
Thanks again.
- Fri May 11, 2018 7:31 pm
- Forum: LEGACY scripting
- Topic: Create/modify CDATA section in XML files...?
- Replies: 2
- Views: 4821
Create/modify CDATA section in XML files...?
Hello everyone I'm checking in to see if anyone has come up with a way to modify or replace a CDATA section using the scripting API in Switch? I'm able to retrieve the CDATA contents and modify the string data using string.replace, but I don't see any way to create and/or replace the CDATA elements ...
- Fri May 06, 2016 1:29 pm
- Forum: LEGACY scripting
- Topic: Filter XML node by type then use IF THEN
- Replies: 11
- Views: 10793
Re: Filter XML node by type then use IF THEN
Hi Andrew
Yes, you can do all this with scripting. You'll just need the right XPath syntax to identify your target Extrinsic node.
Yes, you can do all this with scripting. You'll just need the right XPath syntax to identify your target Extrinsic node.
- Mon Mar 09, 2015 3:51 pm
- Forum: LEGACY scripting
- Topic: xls to csv script
- Replies: 4
- Views: 5186
Re: xls to csv script
Just as an option I am successfully using a command line tool called xlsx2csv to perform these types of conversions in Switch.
Just Google xlsx2csv.
Hope this helps.
Just Google xlsx2csv.
Hope this helps.
- Mon Mar 09, 2015 2:22 pm
- Forum: LEGACY scripting
- Topic: Help with RegEx
- Replies: 10
- Views: 10372
Re: Help with RegEx
Actually, this is what you need to use in Switch:
[^A-Z-]+[^a-z-]?[a-z-](?=[0-9]{6}).*
Positive look behinds are a no-go as well as negative ones.
I hope this helps.
[^A-Z-]+[^a-z-]?[a-z-](?=[0-9]{6}).*
Positive look behinds are a no-go as well as negative ones.
I hope this helps.
- Mon Mar 09, 2015 1:53 pm
- Forum: LEGACY scripting
- Topic: Piping commands using Execute command or process.execute...
- Replies: 1
- Views: 2825
Piping commands using Execute command or process.execute...
Hello I've been trying (unsuccessfully) to pipe commands from one command line tool to another using either the Execute command element or (preferably) the process.execute function in the scripting API. Has anyone been successful in doing this within the scripting API? When I try to pipe a command, ...
- Mon Mar 02, 2015 4:55 pm
- Forum: LEGACY scripting
- Topic: Help with RegEx
- Replies: 10
- Views: 10372
Re: Help with RegEx
Hi
This works for me, using a fixed length positive look-behind:
(?<=[A-Z]{7}-[a-z]{5}-).*$
This works for me, using a fixed length positive look-behind:
(?<=[A-Z]{7}-[a-z]{5}-).*$
- Fri Nov 22, 2013 3:34 am
- Forum: LEGACY scripting
- Topic: Anyone have the correct syntax to remove a directory…?
- Replies: 3
- Views: 4123
Anyone have the correct syntax to remove a directory…?
Hi Dwight Thanks for the response and I can report your 2nd option works. I had declared the variableName in the exact same way as your syntax outside the if/else block that does the removal, but setting it inside the conditional block with your syntax sorted it out. Thanks again. William Buckingham
- Thu Nov 21, 2013 8:04 pm
- Forum: LEGACY scripting
- Topic: Anyone have the correct syntax to remove a directory…?
- Replies: 3
- Views: 4123
Anyone have the correct syntax to remove a directory…?
Hello all I'm trying to find the right syntax to remove a directory using the rmdir option in the Utility>Dir class. I've tried every possible syntax variation I can think of and cannot get this option to work. This is the error I receive: Error in line 76 of script : TypeError. 'rmdir' undefined or...
- Thu Jun 20, 2013 9:52 pm
- Forum: LEGACY scripting
- Topic: Possible to summarize arrays…?
- Replies: 2
- Views: 4452
Possible to summarize arrays…?
Hi Dwight Thanks for the reply and suggestion. Unfortunately my source array is more complicated and I need to be able to summarize on multiple values. Here is what my array rows look like: ["1040771_300g_DL_4-4_13.pdf","300g","DL","1040773,2] ["1040769_300g_A...
- Wed Jun 19, 2013 11:18 pm
- Forum: LEGACY scripting
- Topic: Possible to summarize arrays…?
- Replies: 2
- Views: 4452
Possible to summarize arrays…?
Hello everyone I have a script that does some fairly complicated sorting of production files by pushing segments of file names into an array and sorting on those values to determine the order to SendToData for output. I have a request to be able to provide a production report for a given file proces...
- Mon May 13, 2013 12:38 pm
- Forum: LEGACY scripting
- Topic: How to use s.sleep in a loop...
- Replies: 3
- Views: 5990
How to use s.sleep in a loop...
Hi Freddy and thanks for the response. I was actually afraid that was what happened with a SendToXXX function. Can you advise the following then please? Since Switch uses FIFO will each of the files that are sent to the single output receive their unique job numbers in the order specified by the arr...
- Fri May 10, 2013 7:51 pm
- Forum: LEGACY scripting
- Topic: How to use s.sleep in a loop...
- Replies: 3
- Views: 5990
How to use s.sleep in a loop...
Hi everyone Can anyone out there advise how I can correctly use the s.sleep function to delay each iteration of a loop that sends a sorted list of files from an array to a single path? I'm not having any luck at all using it inside the loop. Does it perhaps need to be positioned outside the loop? An...
- Wed May 08, 2013 12:32 am
- Forum: LEGACY scripting
- Topic: Script with iterating database call...
- Replies: 1
- Views: 3400
Script with iterating database call...
False alarm...I have it working.
Sorry.
Sorry.