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