Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!oliveb!amdahl!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: SFGetfile's response to PBOpenWD Message-ID: <10557@apple.Apple.Com> Date: 20 May 88 00:41:21 GMT References: <12050002@hpvcla.HP.COM> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Technology Group, Apple Computer Lines: 20 In article <12050002@hpvcla.HP.COM> mikek@hpvcla.HP.COM (Mike Kirkpatrick) writes: >Statement of situation: I want to set a particular directory as the current >working directory such that when I issue an SFGetfile, the user is at the >expected location for the file pick. I know the name of the directory but >not the name of the file. See page IV-72 of Inside mac volume 4. Basically, there are 2 low memory globals to control this. SFSaveDisk contains the negative of the volume refnum of the volume. CurDirStore contains the dirID on that volume. These values are set by the Std File package as the user navigates through the directory hierarchy. You can set these values before calling Std File to determine which folder appears initially. Setting the current volume has no relationship to the directory Std File will bring up initially. -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 27-AJ Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr