我正在寻找一个弹出框,让用户看到它在退出之前有 10 秒的延迟并且脚本继续。到目前为止,我有以下内容。
osascript -e 'tell app "System Events" to display dialog with delay "10" "Running Health Check \r \rPlease allow 30 seconds or more to complete." with title "Health Check"'
我读过您可以使用“延迟”功能,但我在将其内联时遇到了问题。