Latest recipes tagged "meta:requires=appkit"http://code.activestate.com/recipes/tags/meta:requires=appkit/new/2004-09-01T21:11:16-07:00ActiveState Code RecipesSimple PyObjC Example (Python)
2004-09-01T21:11:16-07:00Dethe Elzahttp://code.activestate.com/recipes/users/2003873/http://code.activestate.com/recipes/303058-simple-pyobjc-example/
<p style="color: grey">
Python
recipe 303058
by <a href="/recipes/users/2003873/">Dethe Elza</a>
.
</p>
<p>This is a straight port of tiny.m, from Garfinkel and Mahoney's "Building Cocoa Applications: A Step By Step Guide." It shows how to build a Cocoa application without using Interface Builder (or loading .nib files).</p>
Counting pages of PDF documents on Mac OS X. (Python)
2004-07-09T23:43:27-07:00Dinu Ghermanhttp://code.activestate.com/recipes/users/124101/http://code.activestate.com/recipes/286219-counting-pages-of-pdf-documents-on-mac-os-x/
<p style="color: grey">
Python
recipe 286219
by <a href="/recipes/users/124101/">Dinu Gherman</a>
(<a href="/recipes/tags/files/">files</a>).
</p>
<p>Given that PDF is a "native" data format on Mac OS X, it is very easy to get access to some properties of such documents. One is the number of pages. Using Python the necessary code to do this is only about four lines, plus some import and command-line plumbing, etc.</p>
Convert PDF to TIFF on Mac OS X (Python)
2003-09-17T05:37:12-07:00Dinu Ghermanhttp://code.activestate.com/recipes/users/124101/http://code.activestate.com/recipes/223320-convert-pdf-to-tiff-on-mac-os-x/
<p style="color: grey">
Python
recipe 223320
by <a href="/recipes/users/124101/">Dinu Gherman</a>
(<a href="/recipes/tags/graphics/">graphics</a>).
</p>
<p>This is a very short code snippet illustrating how to convert individual pages of PDF documents to TIFF files, one TIFF file per page. It works only on Mac OS X with PyObjC installed. As a recipe the code is compact and does not check for many error conditions, etc. The more extended version does so and can also be used as a command-line tool.</p>