我正在使用我编写的脚本来自动将我的动态 IP 写入 .txt 文件,但我的问题是当单击退出按钮时我无法关闭对话框。
set yn to (display dialog "Your ip has been written to the server, the application will re-run in 10 minutes if you DO NOT close this window." buttons {"Quit", "Run again"} giving up after 600)
if yn is equal to "Quit" then
quit
end if