develooper Front page | perl.macperl.toolbox | Postings from March 2003

Re: [MacPerl-Toolbox] strip the resource fork

Thread Previous
From:
Jeff Lowrey
Date:
March 21, 2003 15:00
Subject:
Re: [MacPerl-Toolbox] strip the resource fork
Message ID:
p05200f01baa149b7e26d@[192.168.136.25]
At 11:33 PM +0100 3/21/03, Bart Lateur wrote:
>A quick question... what's a simple, proper way to strip the resource
>fork from files? In this case, it's all JPEG files, where Photoshop
>attached an icon to.
>
>I'm pretty sure something involving Posix::open with use of the
>Fcntl::O_RSRC flag could help... (see Mac::Conversions, on CPAN), but
>details are still vague to me, and I want to make sure the resource fork
>is completely gone, not just empty.

Just use normal file operations to stream the data fork into a new file.

-jeff lowrey

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About