• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sending AppleEvent from Carbon To Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending AppleEvent from Carbon To Cocoa App


  • Subject: Re: Sending AppleEvent from Carbon To Cocoa App
  • From: olivier <email@hidden>
  • Date: Fri, 30 May 2003 09:32:59 -0500

take a look at the following technote:
http://developer.apple.com/technotes/tn/tn2045.html

Olivier


On Thursday, May 29, 2003, at 10:02 AM, John Nairn wrote:

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.
_______________________________________________
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.

References: 
 >Sending AppleEvent from Carbon To Cocoa App (From: John Nairn <email@hidden>)

  • Prev by Date: How do I create system wide CMM's
  • Next by Date: Re: simple float/double question
  • Previous by thread: Sending AppleEvent from Carbon To Cocoa App
  • Next by thread: Dragging Methods for NSOutlineView
  • Index(es):
    • Date
    • Thread