views:

8

answers:

0

i'm launching a native process from my AIR app which loads a command line program as a background process and need to know when the process has successfully executed and is ready.

when the program has launched normally by simply double-clicking on the file, it opens in Terminal (Mac OS X) and outputs some text stating that it is ready for use. therefore, i'm assuming the native process ProgressEvent.STANDARD_OUTPUT_DATA event listener should fire when the process has executed and is ready, but i never receive any calls to the listener's handler method. in fact, i've tried every event listener for a native process and none of them fire, even though the process does load the application successfully.

sometimes the program takes longer to launch than other times, and it is necessary for me to know when the program is ready.

any thoughts?

related questions