Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!ucla-cs!zen!ucbvax!hplabs!pyramid!voder!apple!keith From: keith@apple.UUCP (Keith Rollin) Newsgroups: comp.sys.mac Subject: Re: multifinder queries & HyperCard annoyances Message-ID: <6213@apple.UUCP> Date: Sat, 12-Sep-87 00:00:43 EDT Article-I.D.: apple.6213 Posted: Sat Sep 12 00:00:43 1987 Date-Received: Sun, 13-Sep-87 06:26:49 EDT References: <809@newton.physics.purdue.edu> <4060@utai.UUCP> Reply-To: keith@apple.UUCP (Keith Rollin) Organization: Apple Computer Inc., Cupertino, USA Lines: 49 Keywords: HyperCard In article <4060@utai.UUCP> dudek@ai.UUCP (Gregory Dudek) writes: > Under MultiFinder, > Does anybody know how you can tell you're running in this environment? >I presume that the switcher globals are still used, but how do you know >you're not under switcher or servant? You could check out the name of the >application running the show, but that would hardly be robust. > > If you do a sublaunch, I thought this adds another partition >with the new program in it. Presumably your program exits at this >point as it used to? Is there a way to fork off a new partition and >application WITHOUT closing the current application? You may want to check out Mec TechNote #158 (released in the September batch) called "Frequently asked MultiFinder Questions". In it, Jim Friedlander answers the questions "How can I tell if WaitNextEvent is implemented?", "How can I tell if the MultiFinder temporary Memory Allocation calls are implemented?", "How can I tell if my program is running in the background?", "When does juggling (context switching) take place?", "Can I disable SUSPEND/RESUME events?", etc. It also makes a reference to the "MultiFinder Developer's Package" presumably available from Mac DTS and soon from APDA. > Playing around with HC scripts a bit, I get the feeling the script >language could use a little more string manipulation power. In particular, >it seems like it could really use some simple regular expression >matching. > Even simpler, it would be nice to be able to test whether an >argument is numeric so you can decide how to handle it. Ain't there any >way to do this simple thing without resorting to absolute brute force?? > (brute force: got any 0s?, got any 1s, got any 2s, ....) > > Ideally, I guess it would be nice if it had the power of ICON or SNOBOL >or something, but maybe that's being unreasonable. I'd suggest maybe writing a simple XCMD to do those things for you. As for testing to see if a string is numeric, try the "value" function (Syntax: "the value of ", or "value()"). This function evaluates the string in . However, I don't know how it chokes if you set to "MarseyDotes" or something like that. Keep those HyperCard suggestions coming; I noticed that Dan Winkler subscribes to this group. Keith Rollin Sales Tech Support Apple Computer Disclaimer: Any rumours I spread I got somewhere else first.