Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Apple Events and OS X

Apple Events and OS X
Thread Tools
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
May 30, 2002, 09:38 AM
 
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
Reply With Quote
May 30, 2002, 09:14 PM
 
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.
Spectral Class
"Shedding Light on Innovation"
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
May 31, 2002, 10:51 AM
 
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
Reply With Quote
May 31, 2002, 12:04 PM
 
</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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2