Path: utzoo!attcan!uunet!snorkelwacker!usc!ucsd!dog.ee.lbl.gov!csa2.lbl.gov!eastman From: eastman@csa2.lbl.gov (JACK EASTMAN) Newsgroups: comp.sys.mac.programmer Subject: Re: Probably a simplistic question, but I haven't seen the answer Message-ID: <7010@dog.ee.lbl.gov> Date: 17 Sep 90 19:09:37 GMT References: <701@sun13.scri.fsu.edu> <1990Sep17.171658.18666@svc.portal.com> Sender: usenet@dog.ee.lbl.gov Reply-To: eastman@csa2.lbl.gov Distribution: comp Organization: Lawrence Berkeley Laboratory - Berkeley, CA, USA Lines: 17 X-Local-Date: Mon, 17 Sep 90 12:15:27 PDT News-Software: VAX/VMS VNEWS 1.3-4 In article <1990Sep17.171658.18666@svc.portal.com>, leonardr@svc.portal.com writes... >In article <701@sun13.scri.fsu.edu> pepke@gw.scri.fsu.edu (Eric Pepke) writes: >>The answer, at least, is simple. Don't use HFS calls. Use MFS calls. >>The folder in which the application sits is in the Poor Man's Search Path. >> > An even easier approach, is to simply call GetVol which will give >you the name and vRefNum of the current directory. Since it should be the >same folder as the appl on a launch w/o documents, it will give you the info >that you want. I'm not sure what happens with that method if you launch your app WITH documents. It's probably safer to call PBGetCatInfo with a file refNum supplied by CurResFile. (You probably don't want to use the PMSP anyway; you'll get all those other directories involved, too.) Jack Eastman eastman@lbl.gov