从 applescript 的输出中删除烦人的“OK”?

问题描述 投票:0回答:0

我正在尝试从命令行使用 AppleScript 读取字符串。

我有以下脚本:

on run prompt
    set theResponse to display dialog prompt default answer ""
    --> {text:"Jen"}
    return (text of theResponse)
end run

这似乎工作正常但输出是“OK,你好”。我想去掉这个 OK,只打印一个脚本。

applescript osascript
© www.soinside.com 2019 - 2024. All rights reserved.