home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!stanford.edu!kronos.arc.nasa.gov!joshr
- From: joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91)
- Subject: AE's and hypercard
- Message-ID: <1993Jan13.031644.6956@kronos.arc.nasa.gov>
- Sender: usenet@kronos.arc.nasa.gov (Will Edgington, wedgingt@ptolemy.arc.nasa.gov)
- Nntp-Posting-Host: mcc2.arc.nasa.gov
- Organization: NASA/ARC Information Sciences Division
- Date: Wed, 13 Jan 1993 03:16:44 GMT
- Lines: 69
-
- Newsgroups: comp.sys.mac.hypercard
- Subject: AE's / bringing hypercard to foreground
- Summary:
- Expires:
- Sender:
- Followup-To:
- Distribution: world
- Organization: NASA/ARC Information Sciences Division
- Keywords:
-
- Hey all:
-
- I am trying to get hypercard to post an error message from the background.
-
- The situation is thus: HC is sent a dosc
- appleevent which it interprets. 99% of this time this works just
- fine, and hypercard does not need to return a message (though
- an empty string or "no error" would benice). But occasionally,
- the script will contain a comand HC cannot support, and
- HC will use the notifiacation manager (blinking multifinder
- icon in upper right) to get the user to switch programs. When HC
- is brought to the foreground, it then displays its error
- message.
-
- What I want is one of the following
-
- 1) (preferred, but difficult) Hypercard detects that it is in the
- background, and returns an error message to the client. I know
- how to do this in hypercard (reply "STRING" in on AppleEvent handler),
- but I am unclear on how I unpackage it in my app
- (using TCL). I seem to always get error -1707, AE not handled
- (not sure about number, but AE not handled is the error message. The
- strange part is that hypercard most definitely DID handle the AE,
- though mey not have returned a result (correctly).
-
- 2) (easier, HELP) Hypercard brings itself to the foreground and
- diplays the message. I thought this would be easy:
-
- on AppleEvent
- ...
- if the result is not empty then
- open hypercard -- I hoped this would cause MF switch, but does not
- end if
- end AppleEvent
-
- ... but "open hypercard" does not deem to bring it to the front as it
- would with other operations.
-
-
- SO: HOW DO I GET HYPERCARD TO BRING ITSELF INTO THE FOREGROUND?
-
- It is not beyond me to write an XCMD if _needed_.
-
-
- THANK YOU VERY MUCH.
- joshr@kronos.arc.nasa.gov
-
-
- PS - has anyone written a 'eval' sender from C? I would be real glad
- to see it, or talk to them.
-
-
-
-
- --
- ----------------------------------
- #include <std/disclaimer.h> Josh Rabinowitz, Mac TCL programmer
- joshr@kronos.arc.nasa.gov
- "Me lost my cookie at the disco." -- Cookie Monster
-