Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rutgers!cbmvax!vu-vlsi!swatsun!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Repeat SetVol query Message-ID: <3260@carthage.cs.swarthmore.edu> Date: 30 Oct 89 15:26:35 GMT Reply-To: jackiw@swatsun.UUCP () Organization: Visual Geometry Project, Swarthmore College, PA Lines: 22 Last time, I asked. This time, I'll beg. PLEASE PLEASE PLEEEEZE reply if you have the answer. You can't SetVol(...) to the working directory returned by SFGetFile under HFS. Even if you GetWDInfo and translate the wdRef into a volRef+ DirID, you can SetVol(...) to the volume (root directory) but not to the DirID. So how can you set the current default directory used by "Create", "Open", and "OpenResFile" knowing only the SFReply.vRefnum? Ideally, the technique should work transparently with non-HFS systems, too (where it's trivial; you have no WDs). THANK YOU THANK YOU THANK YOU Really, I mean it. -- _ _|\____ Nick Jackiw | Visual Geometry Project | Math Department / /_/ O> \ ------------+-------------------------+ Swarthmore College | O> | 215-328-8225| jackiw@cs.swarthmore.edu| Swarthmore PA 19081 \_Guernica_/ ------------+-------------------------+ USA