Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!cornell!batcomputer!pyramid!prls!gardner From: gardner@prls.UUCP (Robert Gardner) Newsgroups: comp.sys.mac Subject: SFGetFile question Message-ID: <8119@prls.UUCP> Date: 18 Dec 87 17:02:11 GMT References: <508@vub.UUCP> <3600016@iuvax> Reply-To: gardner@prls.UUCP (Robert Gardner) Organization: Philips Research Labs, Sunnyvale, California Lines: 21 I am trying to call SFPGetFile twice in a row to get two input files from the user. On the second call I want to filter out the file they chose the first time. I have not been able to find a way to do this. If anyone has any ideas I would appreciate help ASAP. My first attempt was to save the file name and vRefNum from the first call and then check those fields in the fileParam block passed to the filter for a match. Unfortunately, the ioVRefNum passed to the filter is ALWAYS -1 (at least under HFS). I can't figure out any way to get from the information in the fileParam block to a vRefNum to compare it with. I also tried doing a PBGetFInfo call after the first call to SFPGetFile and saving some info there for comparison, but there are so many ways to specify a volume that I couldn't figure out how to do it the same way that is needed for the filter. The volume information doesn't seem to be changed in PBGetFInfo from what you specify. Any help would be greatly appreciated. Robert Gardner