AppleScript advice needed.
- To: mathgroup at smc.vnet.net
- Subject: [mg14806] AppleScript advice needed.
- From: sidles at u.washington.edu (John Sidles)
- Date: Wed, 18 Nov 1998 01:29:07 -0500
- Organization: University of Washington, Seattle
- Sender: owner-wri-mathgroup at wolfram.com
Dear Mathematica users
Does anyone know how to set up Mathematica MathLinks on the Macintosh
so that:
(1) the input to MathKernel is supplied via
AppleScript, e.g.
tell application "MathKernel"
DoScript "2+2"
DoScript "Plot[Sin[x],{x,0,Pi}];"
DoScript "<< myAnalysisNotebook.m;"
end tell
(2) the resulting MathKernel output is directed
to the Front End.
Basically, I want to use Mathematica as a sophisticated tool for
displaying data generated by other applications, with AppleScript
orchestrating the sequence in which the various applications run.
Part (1) works fine, however the output appears in the text window of
the MathKernel (which cannot do graphics).
Achieving Part (2) is a mystery! Can anyone help?
As a start, I entered the MathKernel command
link = LaunchLink["Mathematica 3.0"]
which indeed launched the front end, but with no window open, and with
no response to menu commands. Thus, I had to force-quit the front end.
After which, my digital timestamp was screwed up -- yet again.
With the support desk not open till Monday, I've lost another two days
of work to the dreaded timestamp snafu!
Now I'm scared to experiment further without expert advice. Are there
any experts out there who have been down this path?
Sincerely
John Sidles
---------------------------------------------------------------------
John A. Sidles, Ph.D. email: sidles at u.washington.edu
Professor phone: (206) 543-3690 Department of
Orthopaedics FAX: (206) 685-3139 Box 356500, School of
Medicine PAGE: (206) 989-9462 (to page me, University of
Washington dial, await "beep", enter Seattle WA
98195-6500 USA phone number, press "#")
---------------------------------------------------------------------