【问题标题】:Write string in terminal with AppleScript使用 AppleScript 在终端中写入字符串
【发布时间】:2018-10-28 21:36:06
【问题描述】:

我想用applescript在终端写,比如hello world,不用回车,因为我必须能够在文本之后继续写……我该如何继续?

tell application "Terminal"
    - Some Command for Write "Hello" -
end tell

提前致谢

【问题讨论】:

    标签: string terminal applescript


    【解决方案1】:

    要执行终端命令,请尝试以下操作:

    tell application "Terminal"
        do script "echo 'Hello world'"
    end tell
    

    希望有帮助!

    【讨论】:

    • 对不起,我没有指定没有发送,我必须能够在文本之后继续写......
    • @吉米。然后编辑您的问题以包含您的所有要求。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-03
    • 2012-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-02
    相关资源
    最近更新 更多