home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / hypercar / 4791 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.0 KB  |  54 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!wri!nuntius
  3. From: Douglas B. Stein <doug@wri.com>
  4. Subject: Re: HyperCard and Mathematica (Sys 7)
  5. Message-ID: <1993Jan12.214646.22033@wri.com>
  6. Sender: news@wri.com
  7. Nntp-Posting-Host: busi22.wri.com
  8. Organization: Wolfram Research, Inc.
  9. X-Useragent: Nuntius v1.1
  10. References: <bulmer.726788324@newsroom.utas.edu.au>
  11. Date: Tue, 12 Jan 1993 21:46:46 GMT
  12. Lines: 40
  13.  
  14. In article <bulmer.726788324@newsroom.utas.edu.au> Michael R. Bulmer,
  15. bulmer@hilbert.cc.utas.edu.au writes:
  16. >Has anyone used AppleEvents to use Mathematica from HyperCard
  17. >to do calculations?  Could anyone send me an example script,
  18. >even just the general "do script" message required?
  19.  
  20. A Hypercard XFCN (with source and example stack) can be obtained via
  21. anonymous ftp from mathsource.wri.com in the following file:
  22.  
  23. /pub/Programming/MathLink/Examples/HyperMathLink.sit.hqx
  24.  
  25. Alternatively, you can send an email to mathsource@wri.com containing the
  26. following two lines:
  27.  
  28. compress off
  29. send 0204-163-0022
  30.  
  31. It works best with the "standalone" 2.1b9 kernel available to registered
  32. users of Mathematica 2.1 on the Macintosh. However, since it uses
  33. MathLink (which is layered on top of the PPC Toolbox or MacTCP), it can
  34. communicate with Mathematica kernels running on Unix machines as well as
  35. on the Mac. If you wish to do this or you wish to use the shipping Mac
  36. version (2.1), edit the script for the "Link to Mathematica" button in
  37. the example stack; it contains several alternatives - comment out all but
  38. the one most appropriate for your case.
  39.  
  40. Another way of doing this is to send a "DoScript" AppleEvent containing
  41. the text you wish to be evaluated. Mathematica will return the textual
  42. form of the answer. This works with the shipping version of Mathematica
  43. (2.102) but suffers all of the limitations of AppleEvents (esp. the 64K
  44. limit on event size).
  45.  
  46. Doug
  47. ------------------------------------------
  48.  
  49. Doug Stein
  50. Member of Technical Staff
  51. MathLink Development
  52. Wolfram Research, Inc.
  53. doug@wri.com
  54.