【发布时间】:2015-09-12 12:52:19
【问题描述】:
script AppDelegate
property theWindow : missing value
property displayLabel : missing value
on applicationWillFinishLaunching:aNotification
display dialog "Are you ready?" buttons {"Yes", "No"} default button "Yes"
end applicationWillFinishLaunching:
if result = {button returned:"No"} then
display alert "That's a shame."
tell application "This Application"
quit
end tell
else if result = {button returned:"Yes"} then
set testVariable to "this is a test"
end if
end script
所以,这是我正在 AppleScriptObjC 中开发的应用程序示例。我已经取出了很多东西并用不同的字符串替换了东西,但这是基本布局。
如何将“testVariable”的值放入“displayLabel”属性中,该属性链接到界面构建器中的标签?标签最初是空的,但我希望在脚本运行后填充“testVariable”的值。
谢谢!!!
【问题讨论】:
标签: xcode applescript applescript-objc