This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.
Yes, this is very simple. There are toolbox calls for reading
scripts, compiling scripts, and executing scripts. (OSACompile,
OSAExecute) These are all documented in Inside Mac: Interapplication
Communication.
 
Continue to: