• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Detecting Launched Applet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting Launched Applet


  • Subject: Detecting Launched Applet
  • From: email@hidden
  • Date: Mon, 10 Dec 2001 08:42:50 EST

I have an intersting problem that I've encountered. I have an applet that is
in the Startup Items folder (OS 8.6 and 9.1). It runs everytime the system
boots. On occassion, I need to run it manually. For reasons that aren't
important to this problem, I need to detect whether the script has been
launched on startup of the computer or manually by the user.

Currently, I do this by checking to see if the applet is the current Finder
selection (i.e. it was double-clicked, so it was launched by the user). That
works fine, except it will fail if the script is run from an alias or from
the recent apps menu in the Apple Menu, for example.

So the question is, how can I detect if the applet was launched during the
startup process or by the user (via any method) at some point later?

Thanks.

Ken Fleisher
email@hidden


  • Follow-Ups:
    • Re: Detecting Launched Applet
      • From: Matthew Smith <email@hidden>
    • Re: Detecting Launched Applet
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Prev by Date: Re: Replacing default Applescript icon for app in OS X
  • Next by Date: Re: Detecting Launched Applet
  • Previous by thread: Re: Replacing default Applescript icon for app in OS X
  • Next by thread: Re: Detecting Launched Applet
  • Index(es):
    • Date
    • Thread