On Monday, January 27, 2003, at 06:40 PM, mckernon wrote: > Dear friends, > > I fear I'm caught in the VRefNum vs. WDRefNum vs. FSSpec tangle, > hopefully one of you smart folks can see where I'm screwing up. > > What I'm trying to do is make a list of all the files (of certain types) > within a specified folder within my application's folder. Then, I let > the > user select one of those files from a pop-up menu and display it > onscreen > or print it using USR IMAGEFILETOPICT. > > I call FN CheckFolderApp, which calls FN ProcessFolder, which calls FN > AddToFileList. However, when I use the filenames and volume numbers that > are sent to FN AddToFileList with USR IMAGEFILETOPICT, I first check to > see if they exist and they don't. The filenames are all correct, but the > VolNum is always the same, no matter which sub-folder the routines have > been asked to process. My guess is the scanStuff.ScanSpec.vRefNum isn't > what I need, or it needs converting to a WDRefNum, but I don't know how > to do that. > Hi, This is not an answer, just a general suggestion. If you can, stick to FSSpecs. You can use USR FileExists or USR FSFileExists to check their presence rather than the older paramblock method. Regards Ian