• 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
Sending AppleEvent from Carbon To Cocoa App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Sending AppleEvent from Carbon To Cocoa App
      • From: olivier <email@hidden>
  • Prev by Date: Re: Switch efficiency for large case-sets
  • Next by Date: Re: Switch efficiency for large case-sets
  • Previous by thread: Re: NSBrowser selection
  • Next by thread: Re: Sending AppleEvent from Carbon To Cocoa App
  • Index(es):
    • Date
    • Thread