home *** CD-ROM | disk | FTP | other *** search
- 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
- From: udsugar@mcs.drexel.edu (David Sugar)
- Newsgroups: comp.sys.mac.programmer
- Subject: Detecting File Launch
- Message-ID: <1992Dec21.040009.26063@mcs.drexel.edu>
- Date: 21 Dec 92 04:00:09 GMT
- Organization: Drexel University, Dept. of Math. and Comp. Sci.
- Lines: 21
-
- 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.)
-
- The reason for this is because if the Application was double-
- clicked I would like to bring up a preferences screen or
- something like that, but if the Application was run because
- it is startup time and the Application is in the Startup
- Items folder I would like for the Application to do whatever
- then quit without any user interaction.
-
- Any ideas??
-
- Thanks for all suggestions
-
- Dave Sugar
- udsugar@mcs.drexel.edu
- sugar@cedrus.com
-