Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!hc!beta!cmcl2!rutgers!rochester!PT.CS.CMU.EDU!CAT.CMU.EDU!ns From: ns@CAT.CMU.EDU (Nicholas Spies) Newsgroups: comp.sys.mac.hypercard Subject: Re: Getting part of a field Message-ID: <306@PT.CS.CMU.EDU> Date: Wed, 4-Nov-87 22:15:57 EST Article-I.D.: PT.306 Posted: Wed Nov 4 22:15:57 1987 Date-Received: Sun, 8-Nov-87 00:39:49 EST References: <275@algol.sol.SPS.TRW.COM> <1482@mmm.UUCP> Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 23 They way to avoid having the user bash the selected text is to save the selection into a local variable and then click elsewhere to remove the selection while still in the handler. Such as: on mouseUp -- for any field named "xx", put into background or stack script if the name of the target contains "xx" then set lockText of the target to false repeat two times click at the clickLoc -- the last place clicked end repeat put the selection into found click at 1,1 -- to remove selection so user can't type over it set lockText of the target to false if found is not empty then put found -- or whatever else you want to do with word selected end if end if end mouseUp Often by remembering how you can do it by hand is (at least for now) the way to program it in Hypertalk. --Nick