[Pythonmac-SIG] Converting python for CoreGraphics

2011-07-12 Thread Jim Skibbie
I have a python script that takes a PDF file and returns the width and height of the document's first page. When I moved this to Snow Leopard, I have to run this in 32-bit mode or I can an error: File "/BinaryCache/CoreGraphicsBindings/CoreGraphicsBindings-26~139/Root/System/Library/Frameworks/

Re: [Pythonmac-SIG] Python XMP Toolkit bundling

2009-10-28 Thread Jim Skibbie
From: Christopher Barker Date: Wed, 28 Oct 2009 09:50:14 -0700 To: Jim Skibbie Cc: "pythonmac-sig@python.org" Subject: Re: [Pythonmac-SIG] Python XMP Toolkit bundling Jim Skibbie wrote: > For testing purposes, I removed the option to pass arguments to my > Python script and I

Re: [Pythonmac-SIG] Python XMP Toolkit bundling

2009-10-28 Thread Jim Skibbie
I was using the ­A option to develop in alias mode and that was my issue. When I removed that flag, the libxmp did get bundled into the application. Thanks. Jim From: Jim Skibbie Date: Wed, 28 Oct 2009 11:16:03 -0500 To: "pythonmac-sig@python.org" Conversation: [Pythonmac-SIG]

Re: [Pythonmac-SIG] Python XMP Toolkit bundling

2009-10-28 Thread Jim Skibbie
For testing purposes, I removed the option to pass arguments to my Python script and I tried using the tutorial for py2app to create a standalone app. The Python script looks like the below, but when I build the standalone app and try to run it, I get the error: ImportError: No module named libxm

Re: [Pythonmac-SIG] Python XMP Toolkit bundling

2009-10-27 Thread Jim Skibbie
9 14:13:55 -0700 To: Jim Skibbie Cc: Subject: Re: [Pythonmac-SIG] Python XMP Toolkit bundling On Tue, Oct 27, 2009, Jim Skibbie wrote: > > I?m a Python newbie... I am working on a project where I need to read and > write XMP metadata to PDF files. I found the Python XMP Tool

[Pythonmac-SIG] Python XMP Toolkit bundling

2009-10-27 Thread Jim Skibbie
I¹m a Python newbie... I am working on a project where I need to read and write XMP metadata to PDF files. I found the Python XMP Toolkit at http://code.google.com/p/python-xmp-toolkit/ and was able to download, compile and install all the pieces (boost, Exempi and Python XMP Toolkit) and write a s

[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)