FROM : Georg Seifert
DATE : Sat May 17 17:16:47 2008
Hello,
I want wo be able to make my program scriptable. Most important with
python.
My program is written in ObjectC in XCode 3
I have read lots of stuff in the net.
What is the better possibility:
1) make it scriptable with AppleScript and use the Python/Applescript
bridge or
2) embed it (with the python framework) and use "Py_Initialize();" and
"static PyMethodDef EmbMethods[] = {"
to 1:
- it is possible to use more than on scripting languages (appleScript,
python, javascript)
- it integrates in the system
to 2:
- I have to wrap up my classes (I didn’t found any example doing this
with ObjectC classes, only C++)
- I can have a tighter integration in my program
- the program can’t be remote controlled (as with apple script)
Does anyone has some pros/cons for both approaches?
Does anyone have examples/explanation for the second approach. The
applescript support seems to be quite well documented.
Thanks in advance
Georg
DATE : Sat May 17 17:16:47 2008
Hello,
I want wo be able to make my program scriptable. Most important with
python.
My program is written in ObjectC in XCode 3
I have read lots of stuff in the net.
What is the better possibility:
1) make it scriptable with AppleScript and use the Python/Applescript
bridge or
2) embed it (with the python framework) and use "Py_Initialize();" and
"static PyMethodDef EmbMethods[] = {"
to 1:
- it is possible to use more than on scripting languages (appleScript,
python, javascript)
- it integrates in the system
to 2:
- I have to wrap up my classes (I didn’t found any example doing this
with ObjectC classes, only C++)
- I can have a tighter integration in my program
- the program can’t be remote controlled (as with apple script)
Does anyone has some pros/cons for both approaches?
Does anyone have examples/explanation for the second approach. The
applescript support seems to be quite well documented.
Thanks in advance
Georg
| Related mails | Author | Date |
|---|---|---|
| Georg Seifert | May 17, 17:16 | |
| has | May 17, 23:12 | |
| John C. Daub | May 17, 23:47 | |
| has | May 18, 11:56 | |
| John C. Daub | May 18, 13:06 | |
| Georg Seifert | May 18, 13:56 | |
| has | May 18, 22:47 | |
| John C. Daub | May 19, 00:34 |






Cocoa mail archive

