Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: I want to write Add1ResMenu() Message-ID: <51684@apple.Apple.COM> Date: 18 Apr 91 20:31:12 GMT References: <1387@anaxagoras.ils.nwu.edu> <1991Apr16.180052.12246@cbnewsk.att.com> <1991Apr18.002228.25647@umbc3.umbc.edu> Organization: Future Stuff, Apple Computer, Inc. Lines: 15 In article <1991Apr18.002228.25647@umbc3.umbc.edu> cs483106@umbc5.umbc.edu (cs483106) writes: > >finding out if a resource file is open or not. Simply do an OpenRF on the file >in question. If the resource file is open, then the Resource manager will have >write access to the file, and you will not be able to open it(you will get It is possible to open a resource file read-only, with OpenRFPerm, so this technique won't work. Ithink it is easier to just call PBGetFInfo and check the file attributes (Inside Mac 4 p. 122). -- Larry Rosenstein, Apple Computer, Inc. lsr@apple.com (or AppleLink: Rosenstein1)