Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!lloyd!kent From: kent@lloyd.camex.uucp (Kent Borg) Newsgroups: comp.sys.mac.programmer Subject: Standard File Dialog Hacking Summary: How to get the current dir. Message-ID: <414@lloyd.camex.uucp> Date: 8 Jun 89 18:36:51 GMT Reply-To: kent@lloyd.UUCP (Kent Borg) Organization: Camex, Inc., Boston, Mass USA Lines: 29 (I have this sneaking feeling that this has been hashed over recently and I didn't notice because I didn't know I needed to know...if so, apologies.) In the hook routine for SFPGetFile I can find out the name of the currently highlighted file by looking at reply.fName. So far, so good. My problem is that I don't know how to find out what directory it is in. No, reply.vRefNum doesn't seem to get updated until the user clicks `Open'. Sure, I *could* wait until then, but I want to find out from within the hook routine--while the dialog is up. I tried looking at myParmBlkPtr->ioVRefNum from my file filter routine, but that info seems to track the actual volume and not the HFS directory. Any ideas? Something that won't break with 7.0 Aliases, etc? If this isn't possible (nah, must be) could you folks at Apple (you are listening, aren't you?) change SFPGetFile so it *will* update reply.vRefNum on the fly? Thanks. Kent Borg kent@lloyd.uucp or ...!husc6!lloyd!kent