3

I've got a problem, and have been looking for a solution for a long time.

I made a application which has an option which will launch the app automatically when the system starts using Launch Services.

If application is launched by the user (ie. opening the .app) I want to do something.
If application is launch by Launch Services when the system starts I want to do another thing.

So I need to know how the app was launched: by the System (Launch Services loading the app when the computer turns on) or User (User opening the .app in the Finder).

How can I get this information? Any suggestions are weclome.

prethanks.

Coxy
  • 8,718
  • 4
  • 37
  • 61
dinosaur
  • 628
  • 5
  • 14

0 Answers0