Writing a script to expand a snippet within TextEdit.
I posted this problem before and unfortunately the folks that responded didn't completely solve my problem...
1..I have a "snippet" in the keyboard expansion application "TextExpander" named 'Excused absence'... what this snippet does is expand into a boilerplate letter to provide an excuse in High School when my daughter is sick or otherwise misses a class or classes or the whole day.
My goal: To write an 'AppleScript' routine that will first open a new document in 'Textedit' and then cause the snippet "Excused absence" to expand in the newly created 'Textedit' document...
Thus far I have code provided by Jacques that DOES open a new document and DOES expand the snippet 'Excused absence'... The problem is that it expands the snippet within "Script Editor" rather than in the 'new document created in Textedit' Following is the code that Jacques sent to me (my thanks to him for his effort)
I I am at my wits end with what I had hoped would be a simple task using AppleScript...
any and all replies/help would be appreciated greatly
MacBook Pro with Retina display, OS X Yosemite (10.10.3), null