Q: Applescript and interface won't run together
I am creating a Cocoa Applescript application, and I have an applescript to make speech recognition server listen for commands to use as input. I also have a small window that should appear at the top. When I run the application, the speech recognition window appears and works like it is supposed to. Sometimes the window I created doesn't show up until I quit the applescript part of the program, or it is gray and unusable until I quit the applescript part. I want them to run side-by-side. I am aiming for the speech recognition window appearing like normal, and the other window appearing at the same time (or close to the same time) and both working.
MacBook Pro, OS X Mavericks (10.9)
Posted on Oct 26, 2013 12:57 PM
I think if you use NSSpeechRecognizer to start listening for your terms, and then break up the various recognized ones from the speechRecognizer:didRecognizeCommand: delegate method, you should be able to keep the user interface responsive.
Posted on Oct 26, 2013 2:54 PM