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

  1. Path: sparky!uunet!dtix!darwin.sura.net!wupost!waikato.ac.nz!canterbury.ac.nz!cantua!misc042
  2. From: misc042@cantua.canterbury.ac.nz (Mr M J Miller)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Detecting File Launch
  5. Message-ID: <BzMpMz.Co@cantua.canterbury.ac.nz>
  6. Date: 21 Dec 92 21:42:35 GMT
  7. References: <1992Dec21.040009.26063@mcs.drexel.edu>
  8. Organization: University of Canterbury, Christchurch, New Zealand.
  9. Lines: 16
  10. Nntp-Posting-Host: cantua.canterbury.ac.nz
  11. X-Newsreader: TIN [version 1.1 PL6]
  12.  
  13. David Sugar (udsugar@mcs.drexel.edu) wrote:
  14. > I am looking for a way to detect how a file was launched.  For 
  15. > instance I need to know if an application was launched by 
  16. > being double clicked or weather it was started at startup
  17. > time because it was in the StartUp Items folder.  (I realize
  18. > that I can check to see if the application is in the Startup
  19. > Items folder but I need to see if it was user launched.)
  20.  
  21. How about sampling tickcount? -It should be fairly low if the 
  22. application has been startup launched (less than a minute anyway).
  23.  
  24. ;-} MJM.
  25. misc042@cantua.canterbury.ac.nz
  26. (I am no way employed by,
  27.     or a spokesperson of,
  28.         the University of Canterbury).
  29.