Article View: comp.sys.mac
Article #19460Re: Delete the resource fork
From: earleh
Date: Wed, 23 Sep 1987 02:43
Date: Wed, 23 Sep 1987 02:43
17 lines
1404 bytes
1404 bytes
In article <933@mntgfx.MENTOR.COM>, tomc@mntgfx.MENTOR.COM (Tom Carstensen) writes: > Is there anyway to delete the entire resource fork of a > file without deleting the entire file, and then rewriting > the data fork of the file? > If you open the resource file with PBOpenRF, then use PBSetEOF to make it zero length, this should work. Alternately, you could parse the resource map for the file, use GetResource for each resource type and ID you find there, then RmveResource to remove it. The first method sounds trivial, the second method sounds like an "interesting programming exercise". Disclaimer: I haven't actually done this... -- ********************************************************************* *Earle R. Horton, H.B. 8000, Dartmouth College, Hanover, NH 03755 * *********************************************************************
Technical Details
Message-ID:
<7172@dartvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!decvax!dartvax!earlehReferences:
<933@mntgfx.MENTOR.COM>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!labrea!decwrl!decvax!dartvax!earleh From: earleh@dartvax.UUCP Newsgroups: comp.sys.mac Subject: Re: Delete the resource fork Message-ID: <7172@dartvax.UUCP> Date: Tue, 22-Sep-87 22:43:47 EDT Article-I.D.: dartvax.7172 Posted: Tue Sep 22 22:43:47 1987 Date-Received: Sat, 26-Sep-87 11:08:44 EDT References: <933@mntgfx.MENTOR.COM> Organization: disorganized Lines: 17 Summary: PBOpenRF, then PBSetEOF, should work