[Pythonmac-SIG] Interacting with the contents of an editor

2010-09-28 Thread Suresh Krishna
Hi, I would like to interact with the content of an editor (simple single file editor will do) using Python on OS 10.6. The python script will run in the background and do stuff (like open pop-up windows etc) based on evaluating the text entered into the editor. I am a Python novice, but

Re: [Pythonmac-SIG] Interacting with the contents of an editor

2010-09-28 Thread Charles Hartman
If I understand correctly, you want to build an editor with a Python component, rather than interact with an existing editor. If I'm wrong, maybe AppleScript/TextEdit is a way to go; maybe someone else will have tips on how to do that. In wxPython, the wxStyledTextCtrl is essentially a Scintilla-

Re: [Pythonmac-SIG] Interacting with the contents of an editor

2010-09-28 Thread Suresh Krishna
On Tue, 28 Sep 2010 22:53:24 +0100, Charles Hartman wrote: If I understand correctly, you want to build an editor with a Python component, rather than interact with an existing editor. If I'm wrong, maybe AppleScript/TextEdit is a way to go; maybe someone else will have tips on how to do

Re: [Pythonmac-SIG] Interacting with the contents of an editor

2010-09-28 Thread Ned Deily
In article , "Suresh Krishna" wrote: > I would still also like to find an AppleScript+TextEdit solution if one > seems plausible. appscript (http://pypi.python.org/pypi/appscript/) allows you to control AppleScriptable applications. Its documentation includes some examples of scripting Tex