[Pythonmac-SIG] AppleEvent examples

Mark Day mday@mac.com
Fri, 23 Aug 2002 10:36:34 -0700


On Friday, August 23, 2002, at 07:35 AM, Schollnick, Benjamin wrote:

> 	I'm running v2.21 right now, and I can't seem to import OSAm
> 	into my python scripts... I've placed copies of the slb files in
> 	to the extension folder, and that hasn't changed anything...
>
> 	Is there something beyond that, that I would need to do?

I copy OSAm.carbon.slb (for Carbon MacPython) or OSAm.ppc.slb (for 
non-Carbon MacPython) in the :Lib:site-packages: folder inside the 
MacPython folder.  Then just "import OSAm".

I imagine OSAm would have to be rebuilt if you're using one of the Unix 
command line variants of Python (eg., from Fink, or compiling the Unix 
sources from the Python web site).

-Mark