Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!harrier.ukc.ac.uk!eagle.ukc.ac.uk!icdoc!doc.ic.ac.uk!np From: np@doc.ic.ac.uk (Nigel Perry) Newsgroups: comp.sys.mac.hypercard Subject: Two Questions (1 HyperTalk, 1 XCMD's)... Message-ID: <685@gould.doc.ic.ac.uk> Date: 16 Feb 89 13:27:54 GMT Sender: news@doc.ic.ac.uk Reply-To: np@doc.ic.ac.uk (Nigel Perry) Organization: Dept. of Computing, Imperial College, London, UK. Lines: 40 Two questions: (a) I've written a handler to modify a script (does addreviation etc.) and another which goes through a stack applying this to every script. Problem is it doesn't always work, the code is soemthing like: set script of this stack to Convert(the script of this stack) set script of this bg ... set the script of card/field n to ... etc. Sometimes the scripts of the target stacks get set to "Convert(...)" instead of to the result of the Convert! By changing the lines which convert stack/card/bg scripts to: put the script of this stack/cd/bg into tmp set the script of this ... to Convert(tmp) and leaving the card/field lines as above the problems seem to go away. (I have lockRecent/Messages/Screen all set while doing this). Any ideas? (b) In XCMD/XFCN's is there an official/recommended way of storing globals between calls to the XMCD? I see "Menus for HyperCard" (code in Dan Shaffers book) store stuff in the hc msg window stucture.The copy of Menus I have stores stuff in resources non-purgable in memeory. I thought of storing data by patching a little used trap (InitPacks?) to be a jump to the original followed by a handle to my data. Ideas, recommendations anybody? Thanks in advance. Nigel. --- Nigel Perry Department of Computing Imperial College Janet: np@uk.ac.ic.doc London DARPA: np%uk.ac.ic.doc@ucl-cs SW7 Uucp: np@icdoc.UUCP, ukc!icdoc!np England