 |
 |
Apple Events and OS X
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2001
Location: Internet
Status:
Offline
|
|
I am new to programming the Macintosh and I was wondering if I am reading the right documentation. I am currently reading Inside Macintosh: Interapplication Communication and I am wondering if what is contained in this book is relavant to OS X. If not, where should I be looking?
In case you need to know, my project is to add speech recognition using java speech to a DV device command and control application which has already been developed.
I am guesssing that I need to use Apple Events so that the speech recognition portion of my application can pass the correct event {play, pause, stop, etc...} to the command and control portion ofhte code which will carry out the action.
Any help would be much obliged!
|

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status:
Offline
|
|
If I were you, I would try to use DO (Distributed Objects). That way, one program can vend the data and the other can connect to it and read the data that way.
If, however, you can't do that, I think that Carbon events is the more up to date version of Apple events that you can use.
Out of the two of them, I only have experience with DO, and very little at that so I am not sure either are suitable.
Hope that helps,
Jeff.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2001
Location: Internet
Status:
Offline
|
|
Thanx for the tips. I will check out carbon events, but I am wondering if there is such thing as cocoa events? Because I am using Java (which is a first class language on OS X : ie cocoa) I would think that cocoa would be more up to date.
Any thoughts?
|

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2002
Location: LA
Status:
Offline
|
|
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by hadocon:
<strong>I am new to programming the Macintosh and I was wondering if I am reading the right documentation. I am currently reading Inside Macintosh: Interapplication Communication and I am wondering if what is contained in this book is relavant to OS X. If not, where should I be looking?
In case you need to know, my project is to add speech recognition using java speech to a DV device command and control application which has already been developed.
I am guesssing that I need to use Apple Events so that the speech recognition portion of my application can pass the correct event {play, pause, stop, etc...} to the command and control portion ofhte code which will carry out the action.
Any help would be much obliged!</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">Yes, that information is still relevent. However, check the apple online documentation at <a href="http://developer.apple.com/techpubs/macosx/Carbon/carbon.html" target="_blank">http://developer.apple.com/techpubs/macosx/Carbon/carbon.html</a> Also, you may want to get a program called ScriptDebbuger, which will allow you to model your AE from Applescript, and provide you with AEPRINT formatted AppleEvents, which you can subsquently use as input to AEBUILD to send your events. Also checkout samples of AppleEvent at <a href="http://developer.apple.com/samplecode/Sample_Code/Interapplication_Comm/MoreAppleEvents.htm" target="_blank">http://developer.apple.com/samplecode/Sample_Code/Interapplication_Comm/MoreAppleEvents.htm</a> , which gives you a good framework for sending Apple Events.
Hope that helps
|
|
Good Bye
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|