home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!wri!nuntius
- From: Douglas B. Stein <doug@wri.com>
- Subject: Re: HyperCard and Mathematica (Sys 7)
- Message-ID: <1993Jan12.214646.22033@wri.com>
- Sender: news@wri.com
- Nntp-Posting-Host: busi22.wri.com
- Organization: Wolfram Research, Inc.
- X-Useragent: Nuntius v1.1
- References: <bulmer.726788324@newsroom.utas.edu.au>
- Date: Tue, 12 Jan 1993 21:46:46 GMT
- Lines: 40
-
- In article <bulmer.726788324@newsroom.utas.edu.au> Michael R. Bulmer,
- bulmer@hilbert.cc.utas.edu.au writes:
- >Has anyone used AppleEvents to use Mathematica from HyperCard
- >to do calculations? Could anyone send me an example script,
- >even just the general "do script" message required?
-
- A Hypercard XFCN (with source and example stack) can be obtained via
- anonymous ftp from mathsource.wri.com in the following file:
-
- /pub/Programming/MathLink/Examples/HyperMathLink.sit.hqx
-
- Alternatively, you can send an email to mathsource@wri.com containing the
- following two lines:
-
- compress off
- send 0204-163-0022
-
- It works best with the "standalone" 2.1b9 kernel available to registered
- users of Mathematica 2.1 on the Macintosh. However, since it uses
- MathLink (which is layered on top of the PPC Toolbox or MacTCP), it can
- communicate with Mathematica kernels running on Unix machines as well as
- on the Mac. If you wish to do this or you wish to use the shipping Mac
- version (2.1), edit the script for the "Link to Mathematica" button in
- the example stack; it contains several alternatives - comment out all but
- the one most appropriate for your case.
-
- Another way of doing this is to send a "DoScript" AppleEvent containing
- the text you wish to be evaluated. Mathematica will return the textual
- form of the answer. This works with the shipping version of Mathematica
- (2.102) but suffers all of the limitations of AppleEvents (esp. the 64K
- limit on event size).
-
- Doug
- ------------------------------------------
-
- Doug Stein
- Member of Technical Staff
- MathLink Development
- Wolfram Research, Inc.
- doug@wri.com
-