Comparing JavaScript for Automation (JXA) and AppleScript

For the TextExpander application, you should also be able to use some variant of the code at the foot of this post:

1 Like