home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / apple2 / 27546 < prev    next >
Encoding:
Text File  |  1993-01-25  |  3.3 KB  |  69 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!crux3!jmk3
  3. From: jmk3@crux3.cit.cornell.edu (Jay Krell)
  4. Subject: Re: Finder Extensions
  5. Message-ID: <jmk3.728014056@crux1.cit.cornell.edu>
  6. Sender: news@piccolo.cit.cornell.edu (USENET News System)
  7. Nntp-Posting-Host: crux3.cit.cornell.edu
  8. Organization: Cornell Information Technologies
  9. References: <9301251619.AA12964@apple.com>
  10. Date: 26 Jan 93 02:07:36 GMT
  11. Lines: 56
  12.  
  13. >From: FORDE@UV6.EGLIN.AF.MIL
  14. >Subject: Finder Extensions
  15.  
  16. >>Finder Extensions are INITS.  If you want them available all the time (not
  17. >>just while in the Finder), put them in your System.Setup folder.
  18.  
  19. >How are Finder Extensions accessed, if installed in this manner?  Do they
  20. >show up in the menu bar of other desktop programs?
  21.  
  22. >However, to get the Finder "Extras" to show up I had to move the folder
  23. >onto the harddrive and in the same directory as the Finder.  If I left it
  24. >in my system.setup folder on the ROMDisk the "Extras" item never appeared.
  25.  
  26. I'll answer the easy question first, that of where the files go.
  27.  
  28. It sounds like you are putting the FinderExtras folder in the System.Setup
  29. folder. This is wrong. FinderExtras goes in the System folder "along side of".
  30. Perhaps Finder should recurse down folders, but it doesn't.
  31.  
  32. As for putting extensions in System.Setup and using them from other programs:
  33.  
  34. The Finder communicates with extensions through a set of request codes (System
  35. 6's inter-process application includes a call SendRequest; it is used to do the
  36. communication.) These requests are of the form finderSaysXXX (Finder sends
  37. these out) and tellFinderXXX and askFinderXXX (sent to Finder). For the most
  38. part, these are very Finder dependent. However, there exist two codes,
  39. finderSaysBeforeCopy and finderSaysOpenFailed, that can be used (Apple-approved
  40. and Apple-suggested) outside of Finder. If you double-click a file and Finder
  41. finds no application to open it, finderSaysOpenFailed is sent along with the
  42. file's pathname, and anything that receives it is free to deal with the file.
  43. If something "accepts" the request, Finder does not put up the dialog "Could
  44. not find application...".
  45.  
  46. Examples: IR opens NDA's, CDA's, inits, Finder extras (they have their own
  47. type), and GS/OS drivers. ControlPanel opens control panels. EgoEd opens
  48. textual files, include text, AppleWorks WP, source, and Teach. EasyMount opens
  49. its documents. There are various extensions to deal with sound and graphics
  50. files.
  51.  
  52. If you put IR in the FinderExtras folder, you can only successfully double
  53. click its types in Finder. If you put it in System.Setup, those files can be
  54. opened outside of Finder.
  55.  
  56. So, where to finderSaysBeforeOpen and finderSaysOpenFailed come from outside of
  57. Finder? (plug approaching) I wrote a small NDA called OpenAny that lets you
  58. select any file with a standard open file dialog and then sends out the request
  59. codes. Such an NDA was actually suggested by Apple in the System 6 Ref. OpenAny
  60. is freeware. I believe someone else wrote something similar and made it
  61. shareware.
  62.  
  63. Caveat: I don't think IR opens Finder extensions from other applications. This
  64. makes sense. Also, opening files with IR _can_ be dangerous since those
  65. programs expect a boot environment, not a desktop environment.
  66.  
  67.   --Jay, jay.krell@cornell.edu
  68.  
  69.