On Sun, 22 Nov 1998 16:12:43 -0700, Doug McNutt wrote: > >>Does anyone know how to prevent MacPerl from crashing when it opens the >>resource fork of a corrupt file? > >The MacOS allows OpenRF() and OpenResFile(). The first simply opens the >resource fork for reading without benefit of the resource manager. The >second expects to find a resource map which probably has to be clean. > >I'm betting that OpenRF is supported somewhere in MacPerl, but then you'd >have to scan the resource map manually. Probably a pain. You could look for >obvious things like size though. The only common use of OpenRF is for >copying or compressing files. Matthias has put this functionality into POSIX::open. By using the right flag, you can open the resource rather than the data fork. Go to my Web site, <http://pobox.com/~schinder/MacPerl.html> and pick up a copy of Mac::Conversions to see it used, because I don't remember the exact usage. ------- Paul J. Schinder schinder@pobox.com ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch