I tried to get an output of NSAppleScript execution in runtime, but I found the solution only where I can get the output after script's execution. I want to get output step by step like using NSTask with NSFileHandleDataAvailableNotification notifications and waitForDataInBackgroundAndNotify method.
I cannot use NSTask because I need a script execution with root privileges.
Maybe I can use default stdout with NSAppleScript for that purpose, but I don't know how.