Re: [MacPerl-Toolbox] strip the resource fork
[email protected] (Jeff Lowrey) Fri, 21 Mar 2003 16:59:42 -0600
| Newsgroups | perl.macperl.toolbox |
|---|---|
| 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