开发者

Set dialog text to the text returned AppleScript

开发者 https://www.devze.com 2023-03-30 12:17 出处:网络
I don\'t k开发者_JAVA百科now much AppleScript. How would I change a dialog box\'s text based on the text entered in the text box without repeatedly doing something like this?

I don't k开发者_JAVA百科now much AppleScript. How would I change a dialog box's text based on the text entered in the text box without repeatedly doing something like this?

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"
...


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
0

精彩评论

暂无评论...
验证码 换一张
取 消