Re: How to tell if app launched via login item (versus manual launch)

2009-01-12 Thread Sean McBride
Ken Thomases (k...@codeweavers.com) on 2008-11-26 2:33 AM said: >> I'm wondering if it's possible to tell if my application was launched >> normally by the user, or if it was launched by virtue of being in the >> login items. > >You need to look up the Apple Event that is current at the time of >y

Re: How to tell if app launched via login item (versus manual launch)

2008-11-26 Thread Mark Aufflick
Perfect thanks! The only minor tweak is that the AE doesn't coerce into an int32Value (you always get 0), instead I used the enumCodeValue method and it works as advertised. For the question about why I want to know - I have a preference option to say don't open a default window if the applicatio

Re: How to tell if app launched via login item (versus manual launch)

2008-11-25 Thread Ken Thomases
On Nov 26, 2008, at 12:38 AM, Mark Aufflick wrote: I'm wondering if it's possible to tell if my application was launched normally by the user, or if it was launched by virtue of being in the login items. You need to look up the Apple Event that is current at the time of your application's la

Re: How to tell if app launched via login item (versus manual launch)

2008-11-25 Thread Michael Watson
What are you actually trying to accomplish? -- m-s On 25 Nov, 2008, at 22:38, Mark Aufflick wrote: Hi all, I'm wondering if it's possible to tell if my application was launched normally by the user, or if it was launched by virtue of being in the login items. I don't see anything in NSAppli

How to tell if app launched via login item (versus manual launch)

2008-11-25 Thread Mark Aufflick
Hi all, I'm wondering if it's possible to tell if my application was launched normally by the user, or if it was launched by virtue of being in the login items. I don't see anything in NSApplication to that effect. I'm guessing the parent process might be different, but I'm hoping there is a stan