Using TextExpander inside Keyboard Maestro Macros
/As a college professor, I use a learning management tool called Moodle. When I'm in grading mode, I love to use Keyboard Maestro to help navigate the various boxes related to the Moodle grading template. You can add the grade, text feedback, files, and several items like this for any assignment. I use Keyboard Maestro to navigate to the grading page on Moodle for any given class. I then tab through the input boxes that I typically use, inserting text along the way and then finally pushing the save button, which automatically moves me to the next student. This automation saves tons of time when I have many assignments to grade, particularly when I enter similar text in the "feedback" box.
I use TextExpander to input several standard feedback comments related to my grades on an assignment.
What has been a challenge is using TextExpander snippets inside of a Keyboard Maestro macro. Typing the shortcut inside the macro expands the text. I couldn't figure out a way to overcome that problem. Of course, Keyboard Maestro has some excellent text expansion tools, but I wanted these two apps to work in unison.
I found a simple solution to this that others may find helpful. Experts in these apps probably know about this, but my solution was to break up the text expansion snippet into two separate actions within the Keyboard Maestro macro. Bingo!
After using the Tab Keystroke action to get to the appropriate box inside the Moodle grading page, I used the "Insert Text" action but added only half the TextExpander snippet. I followed this with a second "Insert Text" action with the remainder of the snippet and used a "Pause for 1 Second" action to allow the snippet to expand. It worked beautifully.
Please let me know if there is a more straightforward way to do this. But my somewhat Neanderthal method has allowed TextExpander to play very nicely inside Keyboard Maestro macros.
These are two of my absolute favorite automation apps on the Mac, and I am thankful I've made them play in the same sandbox.
Here is a partial screenshot of the macro I used with the TextExpander snippet broken into two separate “Insert Text” actions.