设置对话框文本到文本返回的AppleScript [英] Set dialog text to the text returned AppleScript

查看:721
本文介绍了设置对话框文本到文本返回的AppleScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道太多的AppleScript。我怎么会改变的基础上,而不用重复做这样的事情在文本框中输入的文本对话框中的文字?

 显示对话框,在对话框中输入文本以更改此消息默认回答
显示对话框默认的答案(结果返回的文本)要更改显示信息,请在框中输入文字
...


解决方案

 设置this_text为在框中输入文本以更改此消息
重复
    设置this_text到返回的文本(显示对话框this_text默认回答要更改显示信息,请在框中输入文本)
重复结束

I don't know 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

这篇关于设置对话框文本到文本返回的AppleScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆