Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!hacgate!ashtate!atsun!dwiggins From: dwiggins@atsun.a-t.com (Don Dwiggins) Newsgroups: comp.sys.mac.hypercard Subject: Re: fields script Message-ID: Date: 2 Nov 90 02:04:48 GMT References: <1990Oct29.002315.3491@sics.se> <1990Oct29.163858.6086@ousrvr.oulu.fi> Sender: dwiggins@ashtate.UUCP Organization: Ashton-Tate, Inc. Lines: 31 In-reply-to: av@woo.oulu.fi.oulu.fi's message of 29 Oct 90 16:38:58 GMT Yet another use for a field script: To help me in looking for a job, I have a stack with several backgrounds, with several cards per bkgnd. For example, the "company" cards have fields for name, address, contacts, interactions I've had with them, etc. At the front of the stack is an index card with fields for each of the backgrounds. On it is a button that extracts the name field from each of the cards and puts it into the appropriate field, one line per card. Now for the fun part: I want to be able to go to the card for a company by clicking on the company's name in the index field. The following script does this for me: on MouseUp set lockScreen to true put (item 1 of rect of me) & "," & the mouseV into thisLine set lockText of me to false -- the field is normally locked click at thisLine set lockText of me to true put word 2 of the selectedLine into i go to card i of bkgnd "Company Info" set lockScreen to false end mouseUp There may be a better way to do this in 2.0; I haven't seen that version yet. I've used variations of this in a couple of stacks. -- Don Dwiggins "If you think training is expensive, Ashton-Tate, Inc. try ignorance" dwiggins@ashtate.a-t.com -- Derek Bok, Harvard U.