Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!psuvax1!psuvm.bitnet!cxt105 From: CXT105@PSUVM.BITNET (Christopher Tate) Newsgroups: comp.sys.mac.programmer Subject: Re: Getting a complete pathname Message-ID: <72675CXT105@PSUVM> Date: 21 Feb 89 23:44:56 GMT References: <7326@june.cs.washington.edu> Organization: Ghostwheel, Inc. Lines: 17 In article <7326@june.cs.washington.edu>, marty@june.cs.washington.edu (Marty Sirkin) says: >I am currently using (in LSP 2.0) SFGetFile to select an input file (with a >custom dialog box and dialogHook procedure). It works just great. My >problem is that when a file is selected, the reply record returns a file >name and directory ref number. I really need the pathname, not the number >as I need to use the staandard pascal reset/rewrite... What I usually do is call SFGetFile (or SFPutFile, for that matter), then use SetVol to make that directory the current volume. Then, writes using the reset and rewrite default to the correct folder. If you really need to, you can use GetVol beforehand to preserve the previous default directory. ------- Christopher Tate | I hate writing, and I hate statistics, cxt105@psuvm.psu.edu | but most of all I hate writing about ...!psuvax1!psuvm.bitnet!cxt105 | statistics. I'd rather go to the cxt105@psuvm.bitnet | dentist; at least there you get to spit.