How to use applescript to Open word or Pages Documents and check 4 txt

Hey guys Im new to these forums and I Am doing a science project that involves scripting and I need to find out how to get apple script to read a document and then if it contains any of the Keywords that I will Specify later. to tell me if it does contain any of those keywords. Like Say the file contains Bob and It checks the file for Bob , John or Ben. and then it Reports to me with a Dialog box saying Keywords found Or something. I Hope you under stand this.
thanks guys. :slight_smile: