views:

30

answers:

1

Hi!!!

I'm wondering if it is possible to send a message (programatically) to a document-based application to create a new document with some special content inside it. I'm creating two applications and the first has to call the second one sending it some data.

I've tried with the Apple Events but it doesn't seem to work.

Thanks in advance!

A: 

There are a number of ways to do this. If you control both applications, probably the simplest is to post a notification to the global notification center from one application, and have the other app listen for it. AppleScript is another way, but requires a bit more work to set up.

Ben Gottlieb