Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!lll-winken!ames!excelan!mahboud From: mahboud@excelan.COM (Mahboud Zabetian) Newsgroups: comp.sys.mac.programmer Subject: Re: INIT getting it's file name... Message-ID: <641@excelan.COM> Date: 26 Oct 89 17:59:51 GMT References: <56505@tiger.oxy.edu> Sender: news@excelan.COM Reply-To: mahboud@na.UUCP (Mahboud Zabetian) Distribution: usa Organization: Kinetics, Inc. Lines: 14 In article <56505@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Ok, this is a quick one but it is very important: is there any way >for an INIT to get the name of the file it is in? I need to later open >the resource fork of the file and I want the user to be able to change the >name of the file; hence, my INIT needs to be able to read in the file name. >Please inform me or the whole net of any solution. Thanks. > >Ando Sonenblick: sonenbli@oxy.edu You might want to try looking for the file by type and creator, and not by filename. Users will almost never change those. Then you won't have to worry about carrying around a filename string. -mahboud