24061RE: [Clip] Using an external list in a loop.
- Oct 13, 2013
Wow, that took it from 30 seconds to about 1 second. I had to insert an item to fix just to make sure it was working. Now to figure out how to create the clip code from the list. I used the following to create it in the first place, but I don't know how to create the commands from the list and then run the newly created commands on the document under consideration.
^!Replace "^(.+)$" >> "\^\!Replace \"$1\" >> \"$1\" AIRSW" AIRSW
I see other benefits of this method as well, such as being able to handle plurals and/or word boundaries in these commands.
I previously did the same thing for loops for capitalizing or lower casing starting words on lines. Originally used a loop, finally wrote 26 commands to simply replace ^a with A, etc. Works much faster.
Just a thought but assuming it must be done with clipcode only, maybe it would be faster to make your clip create a new clip that is a series of 700 replace-all replacements and run that clip, rather than process any loops.
Sent from my Nook HD+
- << Previous post in topic Next post in topic >>