[Pythonmac-SIG] AppScript, Quarks print_ command broken on Tiger

2005-07-04 Thread Peter Waibel
Hi all, executing the following code fails on Tiger 4.1, Xpress 6.x: #!/usr/bin/pythonw from appscript import * qxp = app('QuarkXPress') qxp.documents[1].print_() Xpress will quit unexpectedly. Console: Command: QuarkXPress Path:/Applications/QuarkXPress 6.1/QuarkXPress.app/Contents/MacOS/

[Pythonmac-SIG] Python preferences hosed? What to do?

2005-07-04 Thread Louis Pecora
I run Python from BBEdit although I have used the Python IDE, too. All was fine up to a week ago, then today running from BBEdit through the terminal caused a long delay then an error message that Numeric could not be found. The Python IDE would not start up (long delay then a 'quit' automati

[Pythonmac-SIG] Right init method

2005-07-04 Thread Aldo Bergamini
Dear list, I have decided to try to practice pyObjC by translating (or trying to..) the Objective-C examples of Aaron Hillegass' Cocoa Programming for MacOS X, as I need to get up to date on Cocoa through Python. I am trying to figure out how to translate the obj-C init method of the SpeakLine ex

[Pythonmac-SIG] It Was A Typo! Question redressed...

2005-07-04 Thread Aldo Bergamini
Well, it works now; apparently somebody chose a strange name for the **synthetizer** class: NSSpeechSynthesizer !! The following method (actually copying more closely the spelling of Hillegass' example) works: def init(self): NSLog("init")

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
Aldo -- PyObjC classes (that is, Python classes that extend ObjC ones, like you're trying there) don't use the standard __init__ mechanism (at least, not in a useful way). They do use the standard alloc/init mechanism from ObjC, so you're on the right track in your last try: > def init

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 6:23 AM, Jacob Kaplan-Moss wrote: > Aldo -- > > PyObjC classes (that is, Python classes that extend ObjC ones, like > you're trying there) don't use the standard __init__ mechanism (at > least, not in a useful way). They do use the standard alloc/init > mechanism from ObjC, so

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 12:39 PM, Bob Ippolito wrote: > Also, READ THE DOCS and examples please, this is most definitely > covered a thousand times :) Lighten up, Bob; this isn't explicitly mentioned anywhere -- it only shows up once in a comment on the intro page (http:// pyobjc.sourceforge.net/d

Re: [Pythonmac-SIG] Right init method

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 9:31 AM, Jacob Kaplan-Moss wrote: > On Jul 4, 2005, at 12:39 PM, Bob Ippolito wrote: > >> Also, READ THE DOCS and examples please, this is most definitely >> covered a thousand times :) >> > > Lighten up, Bob; this isn't explicitly mentioned anywhere -- it > only shows up o

[Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Jacob Kaplan-Moss
On Jul 4, 2005, at 2:31 PM, Jacob Kaplan-Moss wrote: > Perhaps this one should be added to the FAQ? > ... which, I now see, doesn't seem to exist (http:// pyobjc.sourceforge.net/faq/ is a 404). Should we write one? I'm happy to coordinate putting one together if people want to send me questi

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Bob Ippolito
On Jul 4, 2005, at 9:48 AM, Jacob Kaplan-Moss wrote: > On Jul 4, 2005, at 2:31 PM, Jacob Kaplan-Moss wrote: > > >> Perhaps this one should be added to the FAQ? >> >> > > ... which, I now see, doesn't seem to exist (http:// > pyobjc.sourceforge.net/faq/ is a 404). > > Should we write one? I'm hap

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Dethe Elza
There is a FAQ on the macpython wiki: http://www.pythonmac.org/wiki/FAQ It seems to have been rather drastically refactored, I remember there being many more questions before. --Dethe On 4-Jul-05, at 1:43 PM, Bob Ippolito wrote: > > On Jul 4, 2005, at 9:48 AM, Jacob Kaplan-Moss wrote: > > >>

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Bob Ippolito
It's not refactored, someone truncated it. On Jul 4, 2005, at 12:54 PM, Dethe Elza wrote: > There is a FAQ on the macpython wiki: > > http://www.pythonmac.org/wiki/FAQ > > It seems to have been rather drastically refactored, I remember there > being many more questions before. > > --Dethe > > On

Re: [Pythonmac-SIG] Xcode fixes

2005-07-04 Thread Ronald Oussoren
On 3-jul-2005, at 23:07, Jonathan 'Wolf' Rentzsch wrote: > > It would be super if sometime over the next two or three weeks there > could be an official release with these changes (assuming no one minds > them, of course). I want to make my text to make it look so easy to > pick > up PyObjC, tha