Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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