Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-14 Thread Daniel Miller
Thanks Nicholas, The general CF rule is that if you use a function named *Get*, then you don't need to CFRelease; if you use a function named *Copy* or *Create*, you do. So, what you've written looks fine. With that in mind one further modification seems to be necessary. Take three attac

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-14 Thread Daniel Miller
Try again...that last file was my scratch file I was using for development. Here's the real thing. Sorry for the mess. ~ Daniel def getproxies_internetconfig(): """Return a dictionary of scheme -> proxy server URL mappings. This function has 'internetconfig' in its name for histo

[Pythonmac-SIG] appscript path problem from a newbie

2008-04-14 Thread John Ott
I am getting file not found errors from appscript. I manually open my OmniOutliner file Projets.oo3 first then from a xterm window: python from appscript import * oop = app('OmniOutliner Professional') pod = oop.documents['Projects.oo3'] A second copy of OmniOutliner Professional is started and

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-14 Thread Ronald Oussoren
On 14 Apr, 2008, at 14:24, Daniel Miller wrote: Thanks Nicholas, The general CF rule is that if you use a function named *Get*, then you don't need to CFRelease; if you use a function named *Copy* or *Create*, you do. So, what you've written looks fine. With that in mind one further modi

Re: [Pythonmac-SIG] appscript path problem from a newbie

2008-04-14 Thread Ned Deily
In article <[EMAIL PROTECTED]>, John Ott <[EMAIL PROTECTED]> wrote: > I am getting file not found errors from appscript. > > I manually open my OmniOutliner file Projets.oo3 first then from a xterm > window: > > python > from appscript import * > oop = app('OmniOutliner Professional') > pod = o

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-14 Thread Christopher Barker
Kevin Horton wrote: > I have two scripts - the > program is started by running the GUI script, which calls wx, and > sets up the whole GUI. This script imports another script, which > holds all the functions that perform the calculations that are the > whole purpose of this application. T