Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ark1!nems!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: aus.mac,comp.sys.mac.programmer Subject: Re: Setting a Default Directory Message-ID: <1990Aug14.134250.8449@eng.umd.edu> Date: 14 Aug 90 13:42:50 GMT References: <11240@wehi.dn.mu.oz> <11319@wehi.dn.mu.oz> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 23 In article <11319@wehi.dn.mu.oz> JON@wehi.dn.mu.oz (Jon Eaves) writes: >In article , jackiw@cs.swarthmore.edu (Nick Jackiw) writes: >> >> Perhaps you're being bitten by an assumption that got me the first time >> I tried this. The default directory is *not* the directory which appears >> by default when you do SFGetFile or SFPutFile. There are low-memory >> globals which deal with this; ask for details if this is the case. >AAAARGH, This is what I want. I want SFGetFile to open up on a specific >folder. I presumed (incorrectly obviously) that they opened up to the >default directory. How do I set this up then? Set CurDirStore to the directory ID of the folder you want to open (2 for the root), and set SFSaveDisk to the NEGATIVE of the VREFNUM (not WDRefNum) of the volume the folder is on. CurDirStore = $0398 (long) SFSaveDisk = $0214 (word) (BTW, in later versions of MultiFinder, these globals are application-specific, so each application has it's own CurDirStore and SFSaveDisk) -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu ][, ][+, ///, ///+, //e, //c, IIGS, //c+ --- Any questions?