08/21/14 19:00:18

Expand Selected Text With TextExpander (Keyboard Maestro Inside)

On other machines, you may not have TextExpander installed, and also may not have a need for it to be installed. In those cases I find this little AppleScript to be very helpful. What it does it basically takes selected text, and uses TextExpander to expand (and replace) it.

set teAbbreviationValue to the clipboard as text

tell application "TextExpander"
    expand abbreviation teAbbreviationValue
end tell

The reason I chose teAbbreviationValue as variable is, because, obviously, I turned this into a Keyboard Maestro macro too.