2011-08-24 64 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