Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!peregrine!elroy!ames!mailrus!uwmcsd1!bbn!bbn.com!levin From: levin@bbn.com (Joel B Levin) Newsgroups: comp.sys.mac.programmer Subject: Reading a resource from an already open file Message-ID: <29389@bbn.COM> Date: 6 Sep 88 21:17:18 GMT Article-I.D.: bbn.29389 Sender: news@bbn.COM Reply-To: levin@BBN.COM (Joel B Levin) Organization: BBN Communications Corporation Lines: 17 I would like to read a resource out of the Desktop file. Unfortunately, under multifinder it is always open and OpenResFile always returns error -49. (This is not a problem if I do this in an application without MF.) I know the file can be read by other means (MPW can duplicate the Desktop file while Finder has it open, for example) and there is some discussion in IM4 about how to refer to an open file for "regular" file I/O. Question: if I want to be able to read the resource at any time, must I thus write code to read the resource fork and manually locate and read the resource, simulating what GetResource et al do? I note by the way that ResEdit doesn't attempt to solve this problem. Thanks / JBL UUCP: {backbone}!bbn!levin POTS: (617) 873-3463 INTERNET: levin@bbn.com