Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!hplabs!hp-pcd!hplsla!hpvcla!mikek From: mikek@hpvcla.HP.COM (Mike Kirkpatrick) Newsgroups: comp.sys.mac.programmer Subject: SFGetfile's response to PBOpenWD Message-ID: <12050002@hpvcla.HP.COM> Date: 17 May 88 16:46:31 GMT Organization: Hewlett Packard, Vancouver, WA Lines: 14 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. Problem: Using a combination of PBHSetVol, PBHGetVol, and PBOpenWD I have changed the current working directory using an absolute path to PBHSetVol and set (WD?)DirID with PBHGetVol, and then opened it with PBOpenWD. When SFGetfile is called, it opens the application's directory, not the one I set. What gives? Can someone give me a hint? Finder/System: 6.0/4.2 Program Lang: TML Pascal Mike Kirkpatrick ihnp4!hpfcla!hpvclx!mikek