Установить текст диалога в текст, возвращаемый AppleScript - PullRequest
1 голос
/ 24 августа 2011

Я не знаю много 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 Ответ

2 голосов
/ 24 августа 2011
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
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...