Get "find" results from TextEdit in Applescript
I'm writing a program that is supposed to check a TextEdit document for a certain string, and perform a different action depending on whether the string was found in the document.
Basically, I need AppleScript to return the results or number of results of a "find" in TextEdit.
I have no idea what to do.
MacBook, Mac OS X (10.7.5)