[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Merge data and resource fork



At 7:14 AM -0400 7/13/00, Chris Nandor wrote:
>At 9.56 +0200 2000.07.13, Rene' Laterveer wrote:
>>I'm need to take the data fork from one file, the resource fork from another
>>file and merge the two forks into a third file. I'm sure that there is a
>>simple way to do this in MacPerl.
>
>Look at Mac::Resources for examples of dealing with the resource fork.

It sounds like he wants to create something similar to a MacBinary, 
in which case all you need to do is to treat the resource fork as a 
stream.  Take a look at Mac::Conversions, which can do -> MacBinary 
II.  There you'll find out how to use POSIX::open to open the 
resource fork for normal reading.

>
>--
>Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
>Andover.Net        | chris.nandor@andover.net | http://slashcode.com/
>
># ===== Want to unsubscribe from this list?
># ===== Send mail with body "unsubscribe" to macperl-request@macperl.org

-- 
--
Paul Schinder
schinder@pobox.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org