home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14819 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.6 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!shamash!paul
  2. From: paul@svl.cdc.com (Paul Kohlmiller)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: vrefNum from Path Name
  5. Summary: Getting vrefNum from Path names is not clear to me
  6. Keywords: vrefNum
  7. Message-ID: <47022@shamash.cdc.com>
  8. Date: 1 Sep 92 05:46:13 GMT
  9. Sender: usenet@shamash.cdc.com
  10. Distribution: usa
  11. Lines: 23
  12.  
  13. This may be a FAQ but I didn't find it.
  14. Most Mac apps have a dialog box to find a file such as the one you
  15. get with SFGetFile etc.
  16. When you do this you get the vrefNum but not the parID which is
  17. another problem for later.
  18. However, I have an application that wants to get the file from a
  19. pathname and there is no place for a vrefNum. While this seems
  20. unMaclike, it seems to work for MPW which can take a path name in
  21. a Link command. Maybe simply opening a file can be done with just
  22. a path but LaunchApplication needs a FSSpec which needs the
  23. vrefNum and the parID. The parID I can set to 0 for now (do I care
  24. about parID on non-A/UX apps) but the vrefNum I need. The best
  25. solution I have so far is to do the dialog box once and keep the
  26. vrefNum info. What I would like is a function that returns vrefNum
  27. from a file pathname but I don't see it. Any ideas?
  28. thnx
  29.  
  30. --
  31.      // Paul H. Kohlmiller             //  "Cybers, Macs and Mips"    //
  32.      // Control Data Systems, Inc.    // Internet: paul@svl.cdc.com  //
  33.      // Acronym under construction.  // America Online: Paul CDC    //
  34.      // All comments are strictly my own. I won't lie but my       //
  35.      // perception of reality is at best a personal hunch.        //
  36.