home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18529 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.8 KB

  1. Path: sparky!uunet!stanford.edu!bcm!lib!mdarpi1.mda.uth.tmc.edu!draper
  2. From: draper@odin.mda.uth.tmc.edu (E.J. Draper)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How to store file references/names ?
  5. Message-ID: <7893@lib.tmc.edu>
  6. Date: 17 Nov 1992 16:17:14 GMT
  7. References: <1e5fvgINN835@uni-paderborn.de>
  8. Sender: usenet@lib.tmc.edu
  9. Organization: U.T.M.D. Anderson Cancer Center
  10. Lines: 30
  11. Nntp-Posting-Host: mdarpi1.mda.uth.tmc.edu
  12. X-UserAgent: Nuntius v1.1.1d12
  13. X-XXMessage-ID: <A72E78578D01019A@mdarpi1.mda.uth.tmc.edu>
  14. X-XXDate: Tue, 17 Nov 92 16:22:15 GMT
  15.  
  16. In article <40561@unix.SRI.COM> Matt Mora, mxmora@unix.SRI.COM writes:
  17.  
  18. >And anyone that looked into a alias can tell you that it does contain
  19. >the full path name. Damn you Apple! :-) (Do what I say not as I do. For
  20. years 
  21. >Apple has been bellowing: "don't use full pathnames" What did they end
  22. up 
  23. >using for aliases?)
  24.  
  25. So?  Why shouldn't they?  Programmatically FSSpecs are great, but are
  26. utterly useless when things breakdown or when dealing with the Alias
  27. Manager's idiosyncracies.  Say, for instance, we need to move 2.4
  28. gigabytes of patient Images from our local RAID storage system to
  29. permanent storage on our UNIX server. In the process ALL ALIASES
  30. referencing files on the RAID will be INVALIDATED but the volumes'
  31. structure will be identical. Well, what do we do now?  How does the
  32. physician's conferencing software find a patient's scan?
  33.  
  34. All we need to do is call GetAliasInfo().  From this we can obtain the
  35. full path name that was stored in the Alias handle. If Apple hadn't
  36. bothered to use and store the original path name we'd be totally out of
  37. luck!
  38.  
  39. Good Apple. Good Apple. ;-)
  40.  
  41.  
  42.       |E|J-  ED DRAPER
  43.  rEpar|D|<-  Radiologic/Pathologic Institute
  44.              The University of Texas M.D. Anderson Cancer Center
  45.              draper@odin.mda.uth.tmc.edu
  46.