[XGP-devel] Cool ~> operator
Brought to you by:
spratt
|
From: <ro...@wr...> - 2003-06-08 22:03:40
|
Hello all, I've been testing the redirect ~> operator, and this seems to provide a nice workaround allowing cocoa & XGP programs to "talk" to each other when using applescript ... for example, one could pipe the results into a file such as '/tmp/result' and then parse the file contents for the information. I think this may be suitable for getting info back from XGP, pain-free. I also noticed that flush_output ensures the file gets written. Convenient! Sincerely, Travis Rose //----------------- // Simple example: //----------------- // query: evaluate query given by "test1 ~> /tmp/result " // code: test1 :- member(X, ['1','2','3']), write(X), nl, flush_output, fail. Richard Travis Rose Type: Student Department: Egr & Comp Sci Class: Undergraduate Student Major: Computer Science Email: ro...@wr... Wright State University |