Sending AppleEvent from Carbon To Cocoa App
Sending AppleEvent from Carbon To Cocoa App
- Subject: Sending AppleEvent from Carbon To Cocoa App
- From: John Nairn <email@hidden>
- Date: Thu, 29 May 2003 09:02:03 -0600
I finally managed to get the NSApplication class of a Cocoa application
to respond to a custom AppleScript command and do something. The
command takes a single NSString argument and it all works fine in a
script from Script Editor.
Now I want to send that command from a Carbon application and I am at a
total loss of where to look in Apple Documentation. In fact, I am
finding the entire documentation on scriptable applications and apple
events very difficult to use as a learning tool. Is there some sample
code for sending command with one argument to NSApplication class of
Cocoa app from carbon app using the defined Apple Event codes?
------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
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.