Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!ames!elroy!ucla-cs!korfhage From: korfhage@lanai.cs.ucla.edu Newsgroups: comp.sys.mac.programmer Subject: file system calls and resource file calls Message-ID: <24103@shemp.CS.UCLA.EDU> Date: 19 May 89 19:54:49 GMT Sender: news@CS.UCLA.EDU Reply-To: korfhage@CS.UCLA.EDU () Organization: UCLA Computer Science Department Lines: 23 I have some simulations in which I write results to a file, then add a Disktop-readable comment (a CEKI resource) with simultion parameters. However, I use SFPutFile to get the file name, and that gives me a name and a directory reference. When I open up the file to write in the CEKI resource, the call (e.g. CreateResFile) wants an absolute pathname, and not a name-and-directory-reference. That wouldn't be troubling, except that I don't see any convenient way to convert a name-and-directory-reference into an absolute path name. Plenty of program do this, so what's the trick? Alternatively, I could use OpenRF to open the resource fork, but the implication in _Macintosh_Revealed_ is that I will have to do some extra housekeeping myself if I use OpenRF instead of OpenResFile and its kin. Is this so? The former (conversion) would be preferable to the latter (new calls) because I already have working code that uses the XXXResFile calls. Thanks for any help. Willard Korfhage ARPA : korfhage@cs.ucla.edu UUCP : {ucbvax,randvax,trwrb!trwspp,ism780}!ucla-cs!korfhage