Loading ...
Sorry, an error occurred while loading the content.

24061RE: [Clip] Using an external list in a loop.

Expand Messages
  • John Shotsky
    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.

       

      Regards,
      John
      RecipeTools Web Site: http://recipetools.gotdns.com/
      John's Mags Yahoo Group:  http://groups.yahoo.com/group/johnsmags/

       

      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Sheri
      Sent: Sunday, October 13, 2013 09:38
      To: ntb-clips@yahoogroups.com
      Subject: Re: [Clip] Using an external list in a loop.

       

       

      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+

    • Show all 10 messages in this topic