I couldn't get the Python thing to work but was able to do it entirely within KM. I created a macro to do the operation once and then used a "master" macro to call this one 50 times and did the replacement in batches. The combination of BBedit and KM made this possible. I also used the Named Clipboard to store the price file so I could repeatedly paste it to the bottom of the file. Posted the macro in case it helps someone else. One of the big wins was there is a command key option to trigger Replace All in BBedit.
Thanks, all of you, for the help - great community.
ERP2.kmmacros (9.6 KB)