Hello Bear,
That is what I thought as well. ApplrScript seems to be of a different mind.
Background: I know nothing about AppleScript. I usually start and stop Tomact using a simple script. Works with no problems. I read the initial post in this
thread and by pure coincidence later that day I went to the homepage of the Spring framework. They have a page on how to get Spring running on an MacOSX system. The page included instructions on creating an AppleScript to start and stop
Tomcat.
Getting Spring to work on MacOSX I opened Script Editor and entered 'do shell script "echo /usr/local/tomcat/jakarta-tomcat-4.1.27/bin/shutdown.sh | /bin/bash"' in the editor and compiled it. I ran the compiled script and it generated an error. The error is: "The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program".
I am sure there is a simple way to do it. The variable is defined in my .bash_profile. The command 'echo $JAVA_HOME' prints the correct answer.
It might be interesting to solve this riddle, but I am not to worried as I use CLI for most of this anyway.
Thanks,
Elton
[ February 23, 2005: Message edited by: Elton Hughes ]