I’ve heard from serveral AppleScript Studio Experts that ASS doesn’t interact well with open pipes, and in my experience this is true. I have no problems reading standard output to a file and then loading it into a text view, but I would like to be able to maintain connections to open pipes for some other shell commmands. The more I get into ASS, the more I am looking at the “call method” approach to filling in the holes, such as returning scroll bars in scroll views. Is there a “call method” approach to reading output from pipes as well?
I think I understand your query. Open a process, pipe the output to a temp file, and get the PID. Then, in your app, add an idle handler. On idle, check for the existence of the process by the PID and, if it exists, read the output file and update the scroll accordingly. Not hugely elegant but probably functional.
Jon