Script for Terminal?

First off, I’m a rank newbie to AppleScript. I’m trying to write a simple AppleScript that will launch Terminal and then type some info into the window and then run it. Here’s what I have so far:

tell application “Terminal”
activate
write to window "./ppsrvr "
end tell

Terminal launches OK, but I cannot figure out how to make the script write to the window. It will also need a “return” command in the window.

Vern

I solved the problem without resorting to AppleScript. I launched Terminal and then typed in the needed ./ppsrvr (without Return) and then did a “Save-As” in Terminals File Drop down. Next, I selected “Execute this command” and “Execute command in a shell” options and then clicked the “Save” button.

Last step was to drag the resulting file to my startup menu.

Vern