I'm attempting to add AppleScript support to a relatively simple application I'm working on. I've created the appropriate .scriptSuite:
http://people.AmbrosiaSW.com/~andrew/wt_scriptSuite.jpg
...and the .scriptTerminology:
http://people.AmbrosiaSW.com/~andrew...erminology.jpg
...and implemented the handlers in my NSPanel subclass:
@interface WireTapPanel : NSPanel
.....
-(void)handleRecordScriptCommand: (NSScriptCommand *)command;
-(void)handleStopScriptCommand: (NSScriptCommand *)command;
-(void)handlePauseScriptCommand: (NSScriptCommand *)command;
The AppleScript dictionary seems to get built okay (I can drag my app onto the ScriptEditor to see the terminology I'm exporting), yet when I send my app one of the commands I've specified to handle, such as:
tell application "WireTap"
record
end tell
...it doesn't handle the command properly, instead I get the following error:
2003-03-19 04:21:33.639 WireTap[8038] Suite NSCoreSuite, apple event code 0x3f3f3f3f
2003-03-19 04:21:33.643 WireTap[8038] Suite NSTextSuite, apple event code 0x3f3f3f3f
2003-03-19 04:21:33.688 WireTap[8038] Suite WireTap, apple event code 0x77546170
2003-03-19 04:21:33.692 WireTap[8038] Command: WireTap.Pause
Direct Parameter: (null)
Receivers: (null)
Arguments: {}
2003-03-19 04:21:33.694 WireTap[8038] Result: (null)
2003-03-19 04:21:33.696 WireTap[8038] Error: 4 "NSReceiversCantHandleCommandScriptError"
Anyone have any idea what I'm doing wrong?