我只想在终端上用applescript书写,例如,hello world,不用回车,因为我必须能够在文本后继续书写...我该如何进行?
tell application "Terminal"
- Some Command for Write "Hello" -
end tell
预先感谢
答案 0 :(得分:0)
要执行终端命令,请尝试以下操作:
tell application "Terminal"
do script "echo 'Hello world'"
end tell
希望有帮助!