home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / mcl / 1211 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.0 KB

  1. Path: sparky!uunet!think.com!mips!apple!cambridge.apple.com!djskrien@COLBY.EDU
  2. From: djskrien@COLBY.EDU (Dale Skrien)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: opening files from the Finder
  5. Message-ID: <9208131535.AA18350@host4.COLBY.EDU>
  6. Date: 13 Aug 92 11:38:19 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 28
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Original-To: info-mcl@cambridge.apple.com
  11.  
  12.  
  13.         I have created a stand-alone application using MCL 2.0 final. 
  14. Using the code supplied with the Binhex sample application, I figured out
  15. how to use the function finder-parameters so that when the user
  16. double-clicks on a file created by my app, the finder automatically starts
  17. up my app and calls my function load-clicked-files, which loads the
  18. clicked-on file (I want my app to _load_ the file, which contains lisp
  19. code, rather than _display_ the contents of a file in a new fred window). 
  20. This all works fine.
  21.         However, if my app is already running and the user double-clicks on
  22. one of its files in the Finder, a new fred window is created and the
  23. contents of the clicked-on file are displayed in it.  This is not what I
  24. want.  When the user double-clicks on a file owned by my app, I would
  25. _like_ for my function load-clicked-files to be executed, just as occurs
  26. during startup.
  27.         Can someone tell me how to do this?
  28.         By the way, this problem only seems to occur under System 7 (on a
  29. Mac IIcx or Quadra).  When I run my app under System 6.0.8 (on a Mac IIcx)
  30. and then double-click on a file in the Finder, I get a message saying you
  31. have to open the file from within the application.  If this message occured
  32. all the time, then I would have no problem.  So an alternate solution to my
  33. problem would be getting this message to always appear when this situation
  34. occurs.
  35.         Thanks.
  36.  
  37. Dale J. Skrien                                                   djskrien@colby.edu
  38. Dept. of Mathematics & Computer Science                207-872-3256
  39. Colby College, Waterville  ME  04901
  40.