summaryrefslogtreecommitdiffstats
path: root/Mac/Contrib/osam/ScriptRunner.h
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-08-18 14:54:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-08-18 14:54:11 (GMT)
commit7cc5735ef26a60df9d1bc3554c1912f951a90308 (patch)
tree5c391a5a9b8e4f6d1932205d9d8ff1283542caef /Mac/Contrib/osam/ScriptRunner.h
parent1d6a6ea1a819a645a3a8841205b10cf33eb04493 (diff)
downloadcpython-7cc5735ef26a60df9d1bc3554c1912f951a90308.zip
cpython-7cc5735ef26a60df9d1bc3554c1912f951a90308.tar.gz
cpython-7cc5735ef26a60df9d1bc3554c1912f951a90308.tar.bz2
Initial revision
Diffstat (limited to 'Mac/Contrib/osam/ScriptRunner.h')
-rw-r--r--Mac/Contrib/osam/ScriptRunner.h30
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);