home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / misc / 18645 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.5 KB

  1. Path: sparky!uunet!spool.mu.edu!news.cs.indiana.edu!umn.edu!news
  2. From: nils@turing.geom.umn.edu (Nils McCarthy)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Re: Tools Inspector: adding applications to file "classes"
  5. Message-ID: <1992Aug13.143827.22492@news2.cis.umn.edu>
  6. Date: 13 Aug 92 14:38:27 GMT
  7. Article-I.D.: news2.1992Aug13.143827.22492
  8. References: <1992Aug12.153419.4758@news.vanderbilt.edu>
  9. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  10. Reply-To: nils@geom.umn.edu
  11. Organization: University of Minnesota
  12. Lines: 53
  13. Nntp-Posting-Host: turing.geom.umn.edu
  14.  
  15.  
  16.  
  17. In article <1992Aug12.153419.4758@news.vanderbilt.edu>  
  18. omar@talnext.cc.vanderbilt.edu (Omar Patino-Siliceo) writes:
  19.  
  20. >Hi NeXT-ers!
  21.  
  22. >This is probably a FAQ but I have to ask it anyway. Is it possible to add an  
  23. >application to the "tool inspector" of a file (or set of files with the same  
  24. >extension)? If so, how do you do it?
  25.  
  26. Each application keeps a list of what file extensions it can handle. It
  27. is in the __header section of the __ICON segment. (you can manipulate
  28. segments and stuff with SegHoarker, available from your favorite archive
  29. site).
  30.  
  31. A typical application's iconheader looks like this: (also described
  32. in NextDev bookshelf somewhere)
  33. F <application name> <application name> app
  34. and if it's a .app, we also have:
  35. F <application name>.app <application name> pap
  36. then come the list of file extentions:
  37. S <extention> <application name> <long type>
  38. i.e. the iconheader of WriteNow looks like:
  39. F    WriteNow    WriteNow    app
  40. F    WriteNow.app    WriteNow    app
  41. S    wn    WriteNow    document
  42. S    wndict    WriteNow    dictionary
  43.  
  44. So, it's straightforward to add a new extention to an application.
  45.  
  46. >Let's say that I would like to add Emacs so I could make Editor or Emacs the  
  47. >default application for all documents with extension "letter". How do I go  
  48. >about it? Thanks.
  49.  
  50. well, there's a default for this: Workspace DefaultOpenApp
  51. For instance, when i tell EL2 (emacs listener. i think the
  52. Emacs application now accepts file open messages now, but
  53. i'm not sure at all.) to install itself,
  54.  
  55. mymachine% dread Workspace DefaultOpenApp
  56. Workspace DefaultOpenApp EL2
  57.  
  58. So, you can just dwrite it to whatever application you want to use instead
  59. of edit..
  60.  
  61. -nils
  62.  
  63. --
  64. always have fun!\_________ I'm Nils McCarthy of the Center for Computation
  65. it's me! nils@geom.umn.edu\___  and Visualization of Geometric Structures.
  66. interface copyrights are evil!\______________________________________________
  67. Hi! I'm a new generation of the .signature virus. Copy me to join in the fun!
  68.