Xref: utzoo comp.sys.mac.programmer:6476 comp.sys.mac.hypercard:1984 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!inria!litp!rjp From: rjp@litp.ibp.fr (Paul ROY) Newsgroups: comp.sys.mac.programmer,comp.sys.mac.hypercard Subject: multifinder programming help Message-ID: <2165@litp.ibp.fr> Date: 19 May 89 20:35:05 GMT Reply-To: rjp@litp.UUCP (Jean-Paul ROY) Organization: Institut Blaise Pascal, Paris, FRANCE. Lines: 38 I am rather new to Macintosh programming, and need some help. Here is my problem. I want Hypercard and a command language interpreter (let us call it A) work in a cooperative way. Namely, Hypercard will be a front-end for hypertext documentation and questioning the interpreter, and A will be the engine which will interpret commands. Here is the idea: I introduce some piece of text into an Hypercard card field, and press ENTER. I have a XCMD which then places the string into the scrap. Then, A sees that something has gone into the scrap, takes it, zeroes the scrap, processes the text, and puts back the answer (a string) into the scrap. I want Hypercard be notified of the answer and put it into a special answer card field. Simple ? Well, I have not yet read a lot of things about programming under Multifinder, but I suspect that I should use suspend/resume events. Three problems: i) How can I "pass the hand" to another *specific* application ? Is it true that a resume event will launch *next* application (maybe the Finder) ? ii) Is the scrap way of making applications communicate right ? I heard of a new release of Mac OS with Inter Process Communication, but I can't wait for it (6 months ?). iii) When the command interpreter A runs, I want it to have the maximum cpu time for processing the query. P.S. I know how to write XCMDs/XFCNs, and the command interpreter A has access to Mac traps, so can set an event loop. Hope somebody will help... ********************************* * Jean-Paul ROY * * CFAPIA - Universite Paris 6 * * Tour 25 (2eme etage) * * 4, place Jussieu * * 75252 PARIS Cedex 05 * * FRANCE * * * * email: mcvax!inria!litp!rjp * *********************************