Re: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist

2005-08-04 Thread Steve Spicklemire
I don't think you can use the '~' shortcut in python: >>> os.path.exists('~/.bashrc') False >>> os.path.exists('/Users/steve/.bashrc') True -steve On Aug 4, 2005, at 9:20 AM, Schollnick, Benjamin wrote: > Folks, > > This is strange... But I suspect it is a permissions issue > > 1) I can

[Pythonmac-SIG] Posting KeyDown events to NSResponder instances?

2005-07-19 Thread Steve Spicklemire
Hi Folks, I'm guessing this is supposed to be easy.. but I've spend a good chunk of time searching for an approach, but none of the suggestions I've found is working for me. ;-( I need to 'manually' send a keyDown event (left arrow actually) to a QTMovieView instance. The movie view is in

Re: [Pythonmac-SIG] NSMovieView question

2005-07-01 Thread Steve Spicklemire
Beware.. initWithURL_error_() returns a tuple.. the first element of the tuple is the QTMovie, the second is (presumably) the error. I think it's because python has no concept of a 'pointer to memory', so rather than pass in a pointer, you get a 'tuple' return value. -steve On Jul 1, 2005,

Re: [Pythonmac-SIG] XML handler design

2005-03-24 Thread Steve Spicklemire
Hi Henning, def startElement(self, name, attrs): self._queue.append(name) # keep the order of processed tags handler = str('_start_'+name) if hasattr(self, handler): self.__class__.__dict__[handler](self, attrs) Is there a better syntax for self.__class__.__dict__[handler]? ho

[Pythonmac-SIG] Embedding with CW6

2005-03-24 Thread Steve Spicklemire
Hi Folks, Back in the pretty old days (python 1.5 or so I think) I developed a Macromedia Director (MMD) scripting Xtra that allowed Lingo scripts to use python as an embedded language. It worked great... but I moved on and haven't done anything Carbon in years. Now I find myself in a situation