Hey Evan,
Three things...
- When asking for help like this please post the simplest possible testable macro.
- This provides much more (and vital) information to potential helpers than you realize.
- It saves people time and trouble and improves the likelihood that you'll get timely and useful assistance.
- Please review this: Tip: How Do I Get The Best Answer in the Shortest Time?
- This particular task is one where I'd just open the file in BBEdit and get the job done in a few seconds.
I recommend BBEdit becauseā¦
- Although BBEdit is a commercial product, the trial version reverts to a
still very powerful and free (BBEdit-Lite) version after 30 days. - It is very Mac-like.
- It has excellent support for RegEx.
- It is very AppleScriptable.
- It has a two versatile command line tools.
- It has been in continuous development for over 25 years.
Take Care,
Chris
(Keyboard Maestro Moderator)