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

  1. Path: sparky!uunet!van-bc!rsoft!mindlink!a347
  2. From: John_Miller@mindlink.bc.ca (John Miller)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: question - vRefNum and hypercard
  5. Message-ID: <14613@mindlink.bc.ca>
  6. Date: 26 Aug 92 23:08:42 GMT
  7. Organization: MIND LINK! - British Columbia, Canada
  8. Distribution: world
  9. Lines: 36
  10.  
  11. > Basically what I have is an explicit path to a directory and file
  12. > on a HD and I would like to get the vRefNum which corresponds to
  13. > this path so that I can pass to another application via
  14. > an apple-event.
  15. >
  16. > Is there any undocumented, slick way of getting the vRefNum
  17. > within hypercard without having to write a custom xcmd, etc..?
  18. >
  19. > Any comments concerning this would be appreciated.
  20.  
  21. Two comments
  22.  
  23. 1)  If you pass 0 as vRefNum and the full pathname as
  24. the filename, it stands a good chance of working.
  25. Assuming it works, this approach fits in the
  26. best with Apple's unfortunate compatibility
  27. stand on parsing or creating full pathnames.  (You
  28. are limited to pathnames of no more than
  29. 255 characters.)
  30.  
  31. 2)  There is something strange about an application
  32. that supports AppleEvents but that only supports
  33. a vRefNum instead of a vRefNum and directory ID.
  34. At best, you should be able to pass an alias
  35. in the AppleEvent, but -- at the very least -- I
  36. would expect that an application that has been
  37. updated to support System 7 features should also
  38. support the hierarchial file system that is
  39. now six and half years old.  (Of course, Apple
  40. should have introduced new Standard File calls
  41. when HFS was introduced, and then most of these
  42. problems would be behind us.)
  43.  
  44. John Miller
  45. Symplex Systems
  46.  
  47.