🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #7419

Re: Convering Data fork stuff to a CODE resource

#7419
From: Tom Taylor
Date: Mon, 29 Sep 1986 17:07
21 lines
1377 bytes
In article <1851@well.UUCP> espen@well.UUCP (Peter Espen) writes:
>
>	Can anyone help me with this one? I am trying to take all the stuff
>that's in the Data fork of a file and change it into a CODE type and put
>it into the resource fork of the file. 
	...stuff deleted...
>	Any help would be appreciated.
>	Peter Espen (espen@well)

In the Macintosh Programmer's Workshop (MPW), the tool Rez (resource compiler)
supports a directive called "Read" that lets you read the data fork
of a file and save it as a resource.
	For example:

	Read 'CODE' (1) "TheFileName";

This statement would save the contents of TheFileName's data fork as a
CODE resource with an ID of 1.

Tom Taylor
Development Systems Group
Technical Details
Message-ID: <186@apple.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!amdahl!apple!tomas
References: <2275@psuvax1.UUCP> <202@zen.BERKELEY.EDU> <432@inuxm.UUCP> <1143@hoptoad.uucp> <1851@well.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!amdahl!apple!tomas
From: tomas@apple.UUCP (Tom Taylor)
Newsgroups: net.micro.mac
Subject: Re: Convering Data fork stuff to a CODE resource
Message-ID: <186@apple.UUCP>
Date: Mon, 29-Sep-86 13:07:57 EDT
Article-I.D.: apple.186
Posted: Mon Sep 29 13:07:57 1986
Date-Received: Wed, 1-Oct-86 01:24:50 EDT
References: <2275@psuvax1.UUCP> <202@zen.BERKELEY.EDU> <432@inuxm.UUCP> <1143@hoptoad.uucp> <1851@well.UUCP>
Reply-To: tomas@apple.UUCP (Tom Taylor)
Distribution: net
Organization: Apple Computer Inc., Cupertino, USA
Lines: 21