I am attempting to set up create a macro that would automate the process of cleaning up a block of text as I import it into BBEdit. I have successfully created a macro that selects the Text Menu in BBEdit to (1) Straighten Quotes, (2) Strip Trailing Whitespace, and (3) Normalize Line Endings. These steps are easy.
However, I cannot get KM to complete the following step:
BBEdit Master Menu: Select "Text"
BBEdit Text Menu: Select "Canonize"
"Canonize" performs changes on a document using a list of transformations from a file, which in my case is named, "~/Documents/BBEdit/BBEdit-Canonize-Bible-Misc.txt". The sub-menu says, "Use transformations from file:" and shows a windows containing a highlighted link to the following file: "~/Documents/BBEdit/BBEdit-Canonize-Bible-Misc.txt". The "Apply" Button is also highlighted in Blue, meaning that if I performed this step manually, hitting "Apply" would run the canonization process.
KM stops processing the macro at this point. If I highlight this specific step in the macro, right click and choose "Try Action," it executes properly. However, my question is "How can I get KM to perform this step automatically?"
Thanks for any guidance you can offer!
Yours, Mark


To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/6EB9CEBD-AC78-46D0-BFDB-EA6598AC010D%40gmail.com.
Dear Kaveh,
YES! Thank you! I tried the same procedure in Text Factory and it worked PERFECTLY! Quick question: Is it possible to set up a shortcut keystroke in BBEdit that (when pressed) will run my newly created TextFactory?
Yours,
Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CAJ2R9pjwVphxL%2BhUOy_bpqP5umf9RhLsJ2XEidhkTc1FyZeUXw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/98AF30B4-7C84-422E-9E98-72D1C2473942%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/98AF30B4-7C84-422E-9E98-72D1C2473942%40gmail.com.
Dear Christopher,
Thank you! I followed your instructions and it works like a charm!
Yours,
Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/575E27EB-71CE-49C2-B5CB-F6C3109EE468%40cumuli.com.