[Pythonmac-SIG] eps + pict preview
Jack Jansen
Jack.Jansen at cwi.nl
Tue Aug 5 14:09:01 EDT 2003
On Tuesday, Aug 5, 2003, at 12:01 Europe/Amsterdam, Robin Becker wrote:
> Hi, I apologise in advance if this is a stupid question from a non mac
> user, but how do I create a file with a resource fork?
The functions for creating and reading resources are in Carbon.Res, the
functions
for creating a file with a resource fork are in Carbon.File (there are
file creation
functions in Carbon.Res too, but they are older, and you may have
problems with long file
names or so). These all pretty much follow the Apple documentation
(except that they're methods on objects where applicable, in stead of
functions taking the objects as first argument).
macostools.py has some examples, and (if you have a source
distribution) more can be found in Mac/Lib/ and Mac/Demo/PICTbrowse and
various other places in Mac/Demo.
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma
Goldman
More information about the Pythonmac-SIG
mailing list