Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!osu-cis!netsys!rutgers!caip.rutgers.edu!twu From: twu@caip.rutgers.edu (Theodore Wu) Newsgroups: comp.sys.mac.programmer Subject: Pict Directory Using StandardFile Keywords: How To Message-ID: Date: 2 Apr 89 13:05:10 GMT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 11 I want to pictup directories as well as files using the Standard File routine SFGetFile. A new button "Use Directory" is added to the standard file window. If this button is pushed, I want SFGetFile to return the selected directory, or the current directory if nothing is sellected. I read all the related sections in Inside Macintosh, but still have trouble puttings things together and get it to work. Can anybody give me some ideas on how to do this? Code in any language that does similar things (or even code that uses the DlgHook) will be very helpful. Thanks in advance. -Ted.