You can call "osascript" which is a command line tool to execute apple script. Use the built-in C "system" command to execute it. This may sound like a platform dependant hack, well it is! Wrapping the code into a designated class should be the way.
By the way: Is listening for some process activity using AppleScript a good way? You probably might be able to read process information using built-in unix features. Think about it