[SOLVED] quit AE not called on a scriptable app
[SOLVED] quit AE not called on a scriptable app
- Subject: [SOLVED] quit AE not called on a scriptable app
- From: Yann Bizeul <email@hidden>
- Date: Sun, 25 Jan 2004 23:34:11 +0100
I had to "register" quit appleevent in the ScriptSuite's supported
command area :
"NSCoreSuite.Quit" = "handleQuitScriptCommand:";
and add a
-(id)handleQuitScriptCommand:(NSScriptCommand *)command
method
Le 21 janv. 04, ` 00:08, Yann Bizeul a icrit :
>
Hello list.
>
>
I did a little scriptability on my app and that works fine, really no
>
problem.
>
My problem is that "quit" event does nothing *if I use my own command
>
before* Meaning that if I launch the app, does not send apple event,
>
just a quit, it works, but if I use my own applescript command, I can
>
no longer use the "quit" command, I would like Cocoa to handle it by
>
itself (quit the app) but it does not. I did not declare to handle
>
"quit" event in the ScriptTerminology or ScriptSuite, so I do not see
>
any reasons to not handle this.
>
>
AppleScript log is as follow:
>
>
2004-01-21 00:02:42.776 SSH Tunnel Manager 2[9490] Command:
>
NSCoreSuite.Quit
>
Direct Parameter: (null)
>
Receivers: (null)
>
Arguments: {}
>
2004-01-21 00:02:42.776 SSH Tunnel Manager 2[9490] Result: (null)
>
>
Thanks for your help.
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.