Receiving Text From Another Application
Posted
by Garry
on Stack Overflow
See other posts from Stack Overflow
or by Garry
Published on 2010-05-17T12:47:42Z
Indexed on
2010/05/18
4:00 UTC
Read the original article
Hit count: 232
Hi,
I'm building some home automation software with Cocoa/Objective-C. The main application will have a minimal GUI and will most likely be represented by a status bar icon only.
I'm using proprietary speech-to-text software (MacSpeech Dictate) that takes my voice command and converts it to plain text. I then need to send this plain text to my app for parsing. Is there a way to send a string to a Cocoa application? Could AppleScript achieve this? How would I make the NSString string in my app "available" to receive the passed string?
For reasons that are beyond the scope of this question - it is not possible to dictate the command directly into my app.
Many thanks in advance,
© Stack Overflow or respective owner