*** JUNK MAIL ***Intercepting application start?

  • Is there any means to intercept a Cocoa application starting?  I'd
    like a script to run every time I run a Cocoa application, and I'd
    prefer to use an intercept.  Does OS X provide any such mechanism?
  • you can only get notified.... there as a tool that changed the
    startanimation of applications (it showed a fullscreen animation
    something).... it basically registered for a notification at
    NSWorkspace if i remember correctly

    Karsten

    Am 06.09.2007 um 05:36 schrieb Timothy Reaves:

    > Is there any means to intercept a Cocoa application starting?  I'd
    > like a script to run every time I run a Cocoa application, and I'd
    > prefer to use an intercept.  Does OS X provide any such mechanism?
    >
    >
  • Yes, something like:

    [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self
    selector:@selector(someMethod:) name:
    NSWorkspaceWillLaunchApplicationNotification object:nil];

    On 6 Sep 2007, at 04:36, Timothy Reaves wrote:

    > Is there any means to intercept a Cocoa application starting?  I'd
    > like a script to run every time I run a Cocoa application, and I'd
    > prefer to use an intercept.  Does OS X provide any such mechanism?
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today