I have textmate and want the java "on run and compile" script to open terminal and compile and run the code.
this is what i have
works fine however it opens two terminal windows.
i don't know applescript and am just learning java.
how do I make both of the "do script" run in the same window?!
thanks
this is what i have
Code:
osascript <<EOF
tell application "Terminal"
activate
try
close windows
end try
do script "cd '$TM_DIRECTORY'; javac '${TM_FILENAME%}'"
do script "cd '$TM_DIRECTORY'; java '${TM_FILENAME%.java}'"
end tell
EOF
works fine however it opens two terminal windows.
i don't know applescript and am just learning java.
how do I make both of the "do script" run in the same window?!
thanks