将对话框文本设置为返回AppleScript的文本

时间:2011-08-24 01:21:37

标签: applescript

我不太了解AppleScript。如何在不重复执行此类操作的情况下根据文本框中输入的文本更改对话框的文本?

display dialog "Enter text in the box to change this message" default answer ""
display dialog (the text returned of the result) default answer "To change the displayed message, enter text in the box"
...

1 个答案:

答案 0 :(得分:2)

set this_text to "Enter text in the box to change this message"
repeat
    set this_text to the text returned of (display dialog this_text default answer "To change the displayed message, enter text in the box")
end repeat
相关问题