【发布时间】:2018-10-28 21:36:06
【问题描述】:
我想用applescript在终端写,比如hello world,不用回车,因为我必须能够在文本之后继续写……我该如何继续?
tell application "Terminal"
- Some Command for Write "Hello" -
end tell
提前致谢
【问题讨论】:
标签: string terminal applescript
我想用applescript在终端写,比如hello world,不用回车,因为我必须能够在文本之后继续写……我该如何继续?
tell application "Terminal"
- Some Command for Write "Hello" -
end tell
提前致谢
【问题讨论】:
标签: string terminal applescript
要执行终端命令,请尝试以下操作:
tell application "Terminal"
do script "echo 'Hello world'"
end tell
希望有帮助!
【讨论】: