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