diff options
Diffstat (limited to 'Mac/Contrib/osam/ScriptRunner.h')
-rw-r--r-- | Mac/Contrib/osam/ScriptRunner.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Mac/Contrib/osam/ScriptRunner.h b/Mac/Contrib/osam/ScriptRunner.h new file mode 100644 index 0000000..dda7bbb --- /dev/null +++ b/Mac/Contrib/osam/ScriptRunner.h @@ -0,0 +1,30 @@ +/* + * + * This is a simple module to allow the + * user to compile and execute an applescript + * which is passed in as a text item. + * + * Sean Hummel <seanh@prognet.com> + * 1/20/98 + * RealNetworks + * + * Jay Painter <jpaint@serv.net> <jpaint@gimp.org> <jpaint@real.com> + * + * + */ +#pragma once + +#include <OSA.h> + +OSAError CompileAndExecute (const char *text, + AEDesc *result, + OSAActiveUPP proc); + +OSAError CompileAndSave (const char *text, + const char *outfile, + OSAActiveUPP proc, + AEDesc *result); + +OSAError ExecuteScriptFile (const char *theFile, + OSAActiveUPP proc, + AEDesc *result); |