2011-08-24 62 views
1

我不太了解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" 
... 

回答

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