(AppleScript)是否可以编写一个对话框的脚本,在该对话框中,您每次看到它时都会显示一个随机字符串?

(AppleScript)是否可以编写一个对话框的脚本,在该对话框中,您每次看到它时都会显示一个随机字符串?,applescript,Applescript,当您在对话框(或类似对话框)上单击“确定”时,它会显示一个包含随机生成的字符行的对话框。您的意思是显示一个包含“确定”按钮的对话框,当单击时,会显示另一个包含随机生成的字符行的对话框吗? set theChars to {"a", "b", "c", "d", "e", "f"} set theRandomWord to "" repeat 5 times

当您在对话框(或类似对话框)上单击“确定”时,它会显示一个包含随机生成的字符行的对话框。

您的意思是显示一个包含“确定”按钮的对话框,当单击时,会显示另一个包含随机生成的字符行的对话框吗?
set theChars to {"a", "b", "c", "d", "e", "f"}
set theRandomWord to ""
repeat 5 times
    set theRandomWord to (theRandomWord & some item of theChars)
end repeat

display dialog (theRandomWord)