home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20138 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!udsugar
  2. From: udsugar@mcs.drexel.edu (David Sugar)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Detecting File Launch
  5. Message-ID: <1992Dec21.040009.26063@mcs.drexel.edu>
  6. Date: 21 Dec 92 04:00:09 GMT
  7. Organization: Drexel University, Dept. of Math. and Comp. Sci.
  8. Lines: 21
  9.  
  10. I am looking for a way to detect how a file was launched.  For 
  11. instance I need to know if an application was launched by 
  12. being double clicked or weather it was started at startup
  13. time because it was in the StartUp Items folder.  (I realize
  14. that I can check to see if the application is in the Startup
  15. Items folder but I need to see if it was user launched.)
  16.  
  17. The reason for this is because if the Application was double-
  18. clicked I would like to bring up a preferences screen or
  19. something like that, but if the Application was run because
  20. it is startup time and the Application is in the Startup
  21. Items folder I would like for the Application to do whatever
  22. then quit without any user interaction.  
  23.  
  24. Any ideas??
  25.  
  26. Thanks for all suggestions
  27.  
  28. Dave Sugar
  29. udsugar@mcs.drexel.edu
  30. sugar@cedrus.com
  31.