Originally posted by yuliang:
<STRONG>I've never used AppleScript before, but i need to create some scripts that control terminal.app
What is the general format of a script that would execute a terminal command?</STRONG>
The direct answer to your question would be:
<font color = red>
tell</font> <font color = blue>application</font> "Terminal"
<font color = blue>do script with command</font> "ls /"
<font color = red>
end tell</font>
However, I would use the do shell script command which doesn't have you use the Terminal:
<font color = blue>do shell script "ls /"</font>
HTH