Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!olivea!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Is AppFile.vRefNum always WDRefNum??? Message-ID: <49003@apple.Apple.COM> Date: 9 Feb 91 22:14:20 GMT References: <1991Feb4.190115.1@gsbacd.uchicago.edu> <24152@neptune.inf.ethz.ch> <1991Feb8.204505.1@gsbacd.uchicago.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 20 In article <1991Feb8.204505.1@gsbacd.uchicago.edu> gft_robert@gsbacd.uchicago.edu (opcode ranger) writes: > >Is there some call in Sys7 which takes a WDRefNum and file name and returns a >FSSpec? I wrote my own, but if there's a ToolBox call that would be nice too. Um...it's in IM VI, and in the MPW and THINK headers, which you should have if you have System 7.0. The routine you are looking for is FSMakeFSSpec. It takes any combination of vRefNum (which could also be a WD), dirID, and string (which could be a full or partial pathname), and fills out an FSSpec record. It is recommended that the only way you fill out an FSSpec is by calling this routine. -- ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions