[Pythonmac-SIG] pyobjc python3k languagebridge

2009-01-30 Thread Nehemiah Dacres
I have a few questions about Python Objective-C. First, how is the development of python3 objective-C going?will python3.0 objective3 be implimented with the Leopard scripting bridge? Is PowerPC a target for these developments? -- "lalalalala! it's not broken because I can use it" http://linux.

[Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-30 Thread Bill Janssen
We discussed this a bit last year, but with no resolution that I remember. I've got a situation where a Python program is preventing logout/shutdown. It's a script that just runs in an endless loop watching what app I'm working with; when it sees one it knows (Preview, MS Word, Safari, etc.) it u

Re: [Pythonmac-SIG] appscript install error

2009-01-30 Thread has
Rajanikanth Jammalamadaka wrote: I get this error when trying to install appscript from source on Mac OS X(using python 2.6.1): ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is not of required architecture for architecture ppc collect2: ld returned 1 exit status lipo:

Re: [Pythonmac-SIG] Python CoreGraphics script running in Applescript

2009-01-30 Thread Bill Noon
On Jan 30, 2009, at 3:24 PM, Jim Skibbie wrote: ... page_rect = pdf.getMediaBox( page_number ) page_width = int(page_rect.getWidth()) page_height = int(page_rect.getHeight()) print "%d \r\n%d" % (page_width, page_height) Under OS 10.5, this script now uses a deprecated function of CoreGraph

[Pythonmac-SIG] Python CoreGraphics script running in Applescript

2009-01-30 Thread Jim Skibbie
I have a script that needs to get the height and width dimensions of the media box of a PDF using Applescript. In OS X 10.4, I was using the following: > set shellScript to "python " & quoted form of PythonPath & " " & POSIXThisFile > set dims to every paragraph of (do shell script shellScript)