Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!midway!gsbacd.uchicago.edu!gft_robert From: gft_robert@gsbacd.uchicago.edu (opcode ranger) Newsgroups: comp.sys.mac.programmer Subject: Is AppFile.vRefNum always WDRefNum??? Message-ID: <1991Feb4.190115.1@gsbacd.uchicago.edu> Date: 5 Feb 91 01:01:15 GMT Sender: news@midway.uchicago.edu (News Administrator) Organization: University of Chicago Lines: 21 -- I have a question regarding the vRefNum field in the AppFile data type: under HFS is this actually a WDRefNum? Is it guaranteed to be a WDRefNum? My problem is this: I need to get the dirID (parent dir id) for each file I get AppFile information for (i.e. for each file which is opened from the Finder with the application). If I know this field is a WDRefNum I can call PBGetWDInfo() on it and find the dirID. If it's not always a WDRefNum I'm not sure if this call will work. Any help greatly appreciated! Robert ============================================================================ = gft_robert@gsbacd.uchicago.edu * generic disclaimer: * "It's more fun to = = * all my opinions are * compute" = = * mine * -Kraftwerk = ============================================================================