Calling a TextExpander routine from TextEdit
Hi, I am trying to write an AppleScript routine that opens a new document in TextEdit and then executes a "snippet" (small piece TextExpander) of code) that will insert some boilerplate text on the TextEdit document.
What I started with:
tell application "TextEdit"
activate
make new document at the front
execute "/excuse" (the name of the snippet in TextExpander)
end tell
I've tried several iterations of this and am still no where close, it does make the new document but that is all the further I've gotten.
I have also looked at the library of TextEdit but cannot seem to find out how to execute an external script.
Any and all help would greatly be appreciated.
Denny
<Email Edited by Host>
MacBook Pro with Retina display, OS X Yosemite (10.10.3), null